Exemplo n.º 1
0
 public void Die()
 {
     CancelInvoke("PacmanBehaviour");
     Destroy(GetComponent <PolygonCollider2D>());
     animator.SetInteger("Action", 2);
     AudioSource.PlayClipAtPoint(pacmanDie, Camera.main.transform.position);
     ghostHiveMind.StopGhostMovement();
 }