Fix enemy count bug where the number of enemies spawned was inconsistent with the amount desired

This commit is contained in:
Ader Alisma 01 2023-07-30 11:56:13 -04:00
parent 3b9964debd
commit c9c47f1417
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,8 @@ public class WaveObserver : Singleton<WaveObserver>
{
if(_levelConfig.ConstantSpawn[i].GetEnemyObject() == paramPrefab)
{
currentCount = _copyConstantSpawn[i] - 1;
currentCount = _copyConstantSpawn[i]--;
Debug.Log("nbr " + currentCount);
break;
}
}

View File

@ -23,7 +23,6 @@ public class EnemyType
public int Count
{
get { return _count; }
set { _count = value; }
}
}