mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-31 06:44:33 -05:00
added some comments
This commit is contained in:
@@ -4,7 +4,6 @@ using UnityEngine;
|
||||
|
||||
public class DashCooldownState : DashBaseState
|
||||
{
|
||||
private CoolDown driver;
|
||||
bool cooldown = false;
|
||||
|
||||
public override void EnterState(DashStateManager dSM, DashBaseState previousState){
|
||||
@@ -30,7 +29,7 @@ public class DashCooldownState : DashBaseState
|
||||
}
|
||||
|
||||
private IEnumerator startCoolDown(DashStateManager dSM){
|
||||
//driver.startUICooldown(dashItem.name);
|
||||
//dSM.driver.startUICooldown(dashItem.name);
|
||||
yield return new WaitForSeconds(dSM.dashItem.cooldownM);
|
||||
cooldown = true;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class DashStateManager : MonoBehaviour
|
||||
////Scripts Section
|
||||
public PlayerStats pStats; // Player Stats
|
||||
public MoveStateManager mSM;
|
||||
public CoolDown driver;
|
||||
////
|
||||
|
||||
////Items Section
|
||||
@@ -44,6 +45,7 @@ public class DashStateManager : 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