public void EnemyKilled() { remainingEnemies--; if (remainingEnemies == 0) { enemyDoor.OpenDoor(); // Spawn Ball; m_itemGreen.Spawn(m_itemSpawnGreen.position); } }
public void CannonDestroid() { remainingCannons--; if (remainingCannons == 0) { cannonDoor.OpenDoor(); // Spawn Cube m_itemBlue.Spawn(m_itemSpawnBlue.position); } }