TheKingsRace/Assets/Scripts/PlayerScripts/MovementAbilities/Nitro.cs
Melbyj1125 702bb555f0 Implemented Item Scripts into objects
Implemented Ragdoll kinda
There are some issues with getting hit while ragdolling that need to be
fixed
Adjusted Dash
Dash still needs some adjustments before being fully implemented
2021-10-25 03:38:56 -05:00

21 lines
549 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Nitro : MonoBehaviour
{
private PlayerStats playerStats;
// Start is called before the first frame update
void Start(){
playerStats = this.gameObject.GetComponent<PlayerStats>();
}
// Update is called once per frame
void Update(){
//once cooldowns are implemented, put this on one (a long one)
if (Input.GetKeyDown(KeyCode.LeftShift)){
playerStats.CurVel = playerStats.MaxVel;
}
}
}