added some comments

This commit is contained in:
Melbyj1125
2022-02-16 12:31:11 -06:00
parent 3ff60a830a
commit ab3598eee4
9 changed files with 61 additions and 18 deletions

View File

@@ -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;
}

View File

@@ -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