void Update() { if (Time.timeScale != 0 && !isBossEntered && !GameObject.FindObjectOfType <Boss>()) { int spawnCount = EnemySpawnPoint.getBaseSpawnCount(); checkBossWave(spawnCount); } }
public static void continueWave() { Score.increaseScore(); Feet.instance.startAnimation(); Background.setBackgroundActive(); UIHandler.changeMusicClip(); EnemySpawnPoint.setSpawn(); EnemySpawnPoint.increaseBaseSpawnCount(); if (EnemySpawnPoint.getBaseSpawnCount() >= GHOST_LIMIT) { Enemy.setGhostColor(); } isBossEntered = false; }