mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
Added Lots of features
1. Added rough fx for erruption 2. Created a sign prefab for level use 3. fixed UI cooldown
This commit is contained in:
@@ -33,7 +33,8 @@ public class dDash : NetworkBehaviour{
|
||||
void DashPlayer(){
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
if(characterController.enabled == true){
|
||||
if (Input.GetKeyDown(KeyCode.E) && isOnCoolDown == false)
|
||||
//press E button or left trigger is pulled
|
||||
if ((Input.GetKeyDown(KeyCode.E) || Input.GetAxis("Dash") != 0) && isOnCoolDown == false)
|
||||
{
|
||||
currentDashTime = 0;
|
||||
StartCoroutine(startCoolDown());
|
||||
|
||||
@@ -22,7 +22,7 @@ public class dNitro : 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)
|
||||
{
|
||||
if(playerStats.CurVel < playerStats.HardCapMaxVel){
|
||||
playerStats.CurVel += playerStats.Acc * 10;
|
||||
|
||||
Reference in New Issue
Block a user