Exemplo n.º 1
0
 void handDie()
 {
     if (handLife == 0)
     {
         alive = false;
         Instantiate(handExplosion, transform.position, transform.rotation);
         sounds [2].Play();
         Destroy(gameObject, 3);
         if (gameObject.CompareTag("Left"))
         {
             bossScript.setDead(1);
         }
         else if (gameObject.CompareTag("Right"))
         {
             bossScript.setDead(2);
         }
         colour.enabled = false;
         coll.enabled   = false;
     }
 }