public void Punch() { StartCoroutine(animator.Punch( (onPunched) => { Reference.instance.player.GetPunched(); Reference.instance.gameOver.Play(); }, (onCompleted) => { isMoving = true; animator.Walk = true; } )); }
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; } )); }