示例#1
0
 void CheckForAttack()
 {
     if (Input.GetMouseButtonDown(0)) // left mouse button click
     {
         playerAnim.Attack1();
     }
     if (Input.GetMouseButtonDown(1)) // right mouse button click
     {
         playerAnim.Attack2();
     }
 }
示例#2
0
 public void AttackCycle()
 {
     if (Calc[0] == QuestionResult)
     {
         //Debug.Log("Play Animation");
         _noResultYet   = true;
         _noQuestionYet = true;
         _playerAnimation.Attack1();
         ClearInputField();
         QuestionSet();
         _noQuestionYet = false;
     }
 }