mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-22 02:14:30 -05:00
Adjustments
1. Adjusted player indicators and added a line 2. Reapplied game objects to dash and nitro 3. Readjust keybindings for nitro and dash
This commit is contained in:
@@ -33,7 +33,7 @@ public class Dash : NetworkBehaviour{
|
||||
void DashPlayer(){
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
if(characterController.enabled == true){
|
||||
if (Input.GetKeyDown(KeyCode.R) && isOnCoolDown == false)
|
||||
if ((Input.GetKeyDown(KeyCode.E) || Input.GetAxis("Dash") != 0) && isOnCoolDown == false)
|
||||
{
|
||||
currentDashTime = 0;
|
||||
StartCoroutine(startCoolDown());
|
||||
|
||||
@@ -24,7 +24,7 @@ public class Nitro : MonoBehaviour
|
||||
void Update()
|
||||
{
|
||||
//once cooldowns are implemented, put this on one (a long one)
|
||||
if (Input.GetKeyDown(KeyCode.LeftShift) && isOnCoolDown == false && playerStats.HasNitro)
|
||||
if ((Input.GetKeyDown(KeyCode.LeftShift) || Input.GetKeyDown(KeyCode.JoystickButton8)) && isOnCoolDown == false && playerStats.HasNitro)
|
||||
{
|
||||
isNitroing = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user