mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 01:44:30 -05:00
Edited UI functions for functionallity in network
-Added popups to map
This commit is contained in:
@@ -39,7 +39,6 @@ public class dDashStateManager : NetworkBehaviour
|
||||
moveController = GetComponent<CharacterController>(); // set Character Controller
|
||||
animator = GetComponent<Animator>(); // set animator
|
||||
animationManager = GetComponent<dAnimationManager>();
|
||||
driver = GameObject.Find("PlayerCanvas").GetComponent<CoolDown>();
|
||||
////
|
||||
|
||||
////Initialize Scripts
|
||||
|
||||
@@ -36,11 +36,8 @@ public class dNitroCooldownState : dNitroBaseState
|
||||
|
||||
//cooldown timer
|
||||
private IEnumerator startCoolDown(dNitroStateManager nSM){
|
||||
Debug.Log("Hello");
|
||||
nSM.driver.startUICooldown("Nitro");
|
||||
Debug.Log("DE");
|
||||
yield return new WaitForSeconds(nSM.nitroItem.cooldownM);
|
||||
Debug.Log("Done");
|
||||
cooldown = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class dNitroStateManager : NetworkBehaviour
|
||||
parentObj = transform.parent.gameObject; // set parent object
|
||||
animator = GetComponent<Animator>(); // set animator
|
||||
animationManager = GetComponent<dAnimationManager>();
|
||||
driver = GameObject.Find("PlayerCanvas").GetComponent<CoolDown>();
|
||||
|
||||
////
|
||||
|
||||
////Initialize Scripts
|
||||
|
||||
Reference in New Issue
Block a user