Exemple #1
0
 private void OnEnable()
 {
     Spawner.enemyCount++;
     uI = GameObject.Find("ManagerUI").GetComponent <ManagerUI>();
     uI.UpdateEnemyCount();
     Die();
 }
Exemple #2
0
 private void OnDisable()
 {
     Spawner.enemyCount--;
     uI.UpdateEnemyCount();
 }