Пример #1
0
 public virtual void Die()
 {
     if (Dead)
     {
         return; //can't die twice
     }
     movement.CurrentDirection = new Vector2(0, 0);
     selection.Deselect();
     soundPlayer.PlayDyingSound();
     dyingAnimation.Start();
     TurnOffComponents();
     TurnOffChildGameObjects();
     Dead = true;
     Debug.Log("DEAD!");
 }
Пример #2
0
 public void PerformAttack()
 {
     //Debug.Log("Attack started!");
     soundPlayer.PlayAttackSound();
     attackAnimation.Start();
 }