Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    public void Kill(BugQueueScript queue)
    {
        dying = true;

        StartCoroutine(HandleDying(queue));
    }
Ejemplo n.º 3
0
    IEnumerator HandleDying(BugQueueScript queue)
    {
        yield return(new WaitForSeconds(DEATH_TIME));

        queue.RemoveFirstBug();
    }