mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-04 16:14:57 -05:00
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
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;
|
|
}
|
|
}
|
|
}
|