示例#1
0
 public void Punch()
 {
     StartCoroutine(animator.Punch(
                        (onPunched) => {
         Reference.instance.player.GetPunched();
         Reference.instance.gameOver.Play();
     }, (onCompleted) => {
         isMoving      = true;
         animator.Walk = true;
     }
                        ));
 }
示例#2
0
 private void Punch()
 {
     StartCoroutine(animator.Punch(
                        (onPunched) => {
         enemy.GetPunched();
         Reference.instance.punch.Play();
         rank++;
         SetHeadText();
     }, (onCompleted) => {
         isActive      = true;
         animator.Walk = true;
         Reference.instance.floor.moveFloor = true;
     }
                        ));
 }