コード例 #1
0
ファイル: Player.cs プロジェクト: Aafaquegit/Dungeon-Master
 public void Damage()
 {
     if (Health < 1)
     {
         isDead = true;
         return;
     }
     Debug.Log("Player : Damage()");
     Health--;
     UIManager.Instance.UpdateLives(Health);
     if (Health < 1)
     {
         _playerAnim.Death();
     }
 }