コード例 #1
0
 private void ActionDefence(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Defence)
     {
         actions.PlayerDefDamage();
     }
 }
コード例 #2
0
 private void ActionHeal(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Heal)
     {
         actions.PlayerHeal(50);
     }
 }
コード例 #3
0
 private void ActionAttack(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Attack)
     {
         actions.AttackAble(true);
         actions.AttackAble(false);
     }
 }
コード例 #4
0
        public void execute(TypeActionTeng typeAction)
        {
            switch (typeAction)
            {
            case TypeActionTeng.Attack:
                ActionAttack(typeAction);
                break;

            case TypeActionTeng.Defence:
                ActionHeal(typeAction);
                break;

            case TypeActionTeng.Heal:
                ActionDefence(typeAction);
                break;
            }
        }
コード例 #5
0
ファイル: ControllerTest.cs プロジェクト: NonCAG/TengVsBug
 public void ActionAttack_(TypeActionTeng type)
 {
 }