예제 #1
0
파일: PlayerWalk.cs 프로젝트: gvela4/UNITY
 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;
     }
 }