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:
Evan Nydahl
2022-02-04 14:38:33 -06:00
parent 09ea1fe031
commit ed8b9ffa91
25 changed files with 16564 additions and 10 deletions

View File

@@ -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());

View File

@@ -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;