예제 #1
0
 public void AttackIfPossible()
 {
     if (!_status.IsAttackable)
     {
         return;
     }
     _status.GoToAttackStateIfPossible();
 }
예제 #2
0
 /// <summary>
 /// 攻撃可能な状態であれば攻撃を行います。
 /// </summary>
 public void AttackIfPossible()
 {
     if (!_status.IsAttackable)
     {
         return;                        // ステータスと衝突したオブジェクトで攻撃可否を判断
     }
     _status.GoToAttackStateIfPossible();
 }