mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-08 18:35:18 -05:00
Refactored ui code to work with new state base player
This commit is contained in:
@@ -36,7 +36,7 @@ public class NitroCooldownState : NitroBaseState
|
||||
|
||||
//cooldown timer
|
||||
private IEnumerator startCoolDown(NitroStateManager nSM){
|
||||
//nSM.driver.startUICooldown("Nitro");
|
||||
nSM.driver.startUICooldown("Nitro");
|
||||
yield return new WaitForSeconds(nSM.nitroItem.cooldownM);
|
||||
cooldown = true;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class NitroStateManager : NetworkBehaviour
|
||||
parentObj = transform.parent.gameObject; // set parent object
|
||||
animator = GetComponent<Animator>(); // set animator
|
||||
animationManager = GetComponent<AnimationManager>();
|
||||
//driver = GameObject.Find("Canvas").GetComponent<CoolDown>();
|
||||
driver = GameObject.Find("PlayerCanvas").GetComponent<CoolDown>();
|
||||
////
|
||||
|
||||
////Initialize Scripts
|
||||
|
||||
Reference in New Issue
Block a user