mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-07 09:55:24 -05:00
added some comments
This commit is contained in:
@@ -4,7 +4,6 @@ using UnityEngine;
|
||||
|
||||
public class NitroCooldownState : NitroBaseState
|
||||
{
|
||||
|
||||
bool cooldown = false;
|
||||
|
||||
public override void EnterState(NitroStateManager nSM, NitroBaseState previousState){
|
||||
@@ -30,7 +29,7 @@ public class NitroCooldownState : NitroBaseState
|
||||
}
|
||||
|
||||
private IEnumerator startCoolDown(NitroStateManager nSM){
|
||||
//driver.startUICooldown("Nitro");
|
||||
//nSM.driver.startUICooldown("Nitro");
|
||||
yield return new WaitForSeconds(nSM.nitroItem.cooldownM);
|
||||
cooldown = true;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class NitroStateManager : MonoBehaviour
|
||||
////Scripts Section
|
||||
public PlayerStats pStats; // Player Stats
|
||||
public MoveStateManager mSM;
|
||||
public CoolDown driver;
|
||||
////
|
||||
|
||||
////Items Section
|
||||
@@ -48,6 +49,7 @@ public class NitroStateManager : MonoBehaviour
|
||||
capCol.enabled = true;
|
||||
parentObj = transform.parent.gameObject; // set parent object
|
||||
animator = GetComponent<Animator>(); // set animator
|
||||
//driver = GameObject.Find("Canvas").GetComponent<CoolDown>();
|
||||
////
|
||||
|
||||
////Initialize Scripts
|
||||
|
||||
Reference in New Issue
Block a user