Edited UI functions for functionallity in network

-Added popups to map
This commit is contained in:
Evan Nydahl
2022-03-11 15:10:48 -06:00
parent ae66378ca1
commit 38e01ac1e5
12 changed files with 1097 additions and 70 deletions

View File

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

View File

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