Exemplo n.º 1
0
    private IEnumerator DeathSequence(float deathTime)
    {
        this.dying = true;
        float timeLeft = deathTime;

        this.gunObjects[this.currentGun].SetActive(false);
        while (timeLeft > 0)
        {
            this.spriteRenderer.enabled = !this.spriteRenderer.enabled;
            timeLeft -= Time.deltaTime;
            yield return(null);
        }
        FightController.FindMe().EndLevel();
    }
Exemplo n.º 2
0
 void Start()
 {
     this.lastSpawn       = float.MinValue;
     this.levelController = FightController.FindMe();
 }