Fix enemy count bug where the number of enemies spawned was inconsistent with the amount desired
This commit is contained in:
parent
3b9964debd
commit
c9c47f1417
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,6 @@ public class EnemyType
|
||||
public int Count
|
||||
{
|
||||
get { return _count; }
|
||||
set { _count = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user