Ejemplo n.º 1
0
 public void Die(GameObject obj = null)
 {
     isAlive    = false;
     deadTimes += 1;
     //particle[4].Play();
     //AudioSource.PlayClipAtPoint(dieClip, transform.position);
     render.enabled = false;
     //collider.enabled = false;
     if (obj != null)
     {
         AICollided = obj;
     }
     hud.GameEnd();
 }