made dash use R button

This commit is contained in:
Melbyj1125
2022-02-07 18:10:32 -06:00
parent fff8f4f17e
commit 8fbedf486d
7 changed files with 8 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ public class Dash : NetworkBehaviour{
void DashPlayer(){
//if (!IsLocalPlayer) { return; }
if(characterController.enabled == true){
if ((Input.GetKeyDown(KeyCode.E) || Input.GetAxis("Dash") != 0) && isOnCoolDown == false)
if ((Input.GetKeyDown(KeyCode.R) || Input.GetAxis("Dash") != 0) && isOnCoolDown == false)
{
currentDashTime = 0;
StartCoroutine(startCoolDown());