예제 #1
0
 void Update()
 {
     if (player.ControlAllowed)
     {
         if (Input.GetKeyDown(player.dash) && !Dashing && CoolDownTimer > DashCooldown)
         {
             player.CancelAllActions();
             Instantiate(DashEffect, transform.position, transform.rotation);
             StartCoroutine(Dash());
         }
     }
 }