Add lantern on molo and delete zombie in day
This commit is contained in:
@@ -39,9 +39,9 @@ public class BarricadeManager : MonoBehaviour
|
||||
|
||||
public void addPlank()
|
||||
{
|
||||
if (health < (barricadePlanks.Count * 50)) {
|
||||
if (health < (barricadePlanks.Count * 35)) {
|
||||
audioSource.PlayOneShot(buildSound);
|
||||
health += 50;
|
||||
health += 35;
|
||||
offMeshLink.enabled = false;
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ public class BarricadeManager : MonoBehaviour
|
||||
{
|
||||
for (int i = 0; i < barricadePlanks.Count; i++)
|
||||
{
|
||||
if (i < (health / 50)) {
|
||||
if (i < (health / 35)) {
|
||||
barricadePlanks[i].SetActive(true);
|
||||
}
|
||||
else
|
||||
|
@@ -38,6 +38,11 @@ public class SpawnManager : MonoBehaviour
|
||||
if (!night)
|
||||
{
|
||||
alreadySpawn = false;
|
||||
GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemy");
|
||||
foreach (GameObject localEnemy in enemies)
|
||||
{
|
||||
Destroy(localEnemy);
|
||||
}
|
||||
}
|
||||
|
||||
if (!alreadySpawn && night)
|
||||
|
Reference in New Issue
Block a user