mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-05-19 02:09:24 -05:00
-added kick prototype -added drop-kick prototype -added slide prototype -added dash prototype -added nitro prototype
21 lines
549 B
C#
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;
|
|
}
|
|
}
|
|
}
|