TheKingsRace/Assets/Scripts/Nitro.cs
Evan Nydahl 460092aacb Added several prototypes
-added kick prototype
-added drop-kick prototype
-added slide prototype
-added dash prototype
-added nitro prototype
2021-10-18 12:35:16 -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;
}
}
}