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