Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (wheelsLeft == 0)
        {
            if (!allFinished)
            {
                Debug.Log("All wheels Gone");
                Destroy(GameObject.FindGameObjectWithTag("BossWheels").gameObject, 1f);
                BossTowerAI.wheelsDestroyed = true;
                BossTowerAI.BossStage       = 3;
                foreach (Collider c in wheelColls1)
                {
                    c.enabled = false;
                }
                foreach (Collider c in wheelColls2)
                {
                    c.enabled = false;
                }
                foreach (Collider c in wheelColls3)
                {
                    c.enabled = false;
                }
                foreach (Collider c in wheelColls4)
                {
                    c.enabled = false;
                }


                allFinished = true;
                Boss.BossIsDead();
            }
        }
    }
 public void Death()
 {
     if (!GameObject.Find("TempAudio"))
     {
         music.enabled = true;
         //music.Play();
     }
     if (!isclipPlaying)
     {
         music.enabled = true;
     }
     GiveXP();
     StartCoroutine(Explode());
     bossBrain.BossIsDead();
 }