void Start() { Application.targetFrameRate = 60; sfx = GetComponent <SFXScript> (); bugQueueScript = GetComponentInChildren <BugQueueScript> (); bugFarmScript = GetComponentInChildren <BugSpawnerScript> (); healthPool = GetComponent <HealthPoolScript> (); finalBossScript = GetComponentInChildren <FinalBossScript> (); aliceScript = GetComponentInChildren <AliceScript> (); emilyScript = GetComponentInChildren <EmilyScript> (); NextWave(2.0f); }
public void Kill(BugQueueScript queue) { dying = true; StartCoroutine(HandleDying(queue)); }
IEnumerator HandleDying(BugQueueScript queue) { yield return(new WaitForSeconds(DEATH_TIME)); queue.RemoveFirstBug(); }