Merge branch 'KingsAbs'

This commit is contained in:
Katherine
2021-12-03 13:37:23 -06:00
23 changed files with 1153 additions and 395 deletions

View File

@@ -18,19 +18,19 @@ public class Nitro : MonoBehaviour
driver = FindObjectOfType<CoolDown>();
}
// Update is called once per frame
void Update(){
//once cooldowns are implemented, put this on one (a long one)
if (Input.GetKeyDown(KeyCode.LeftShift) && isOnCoolDown == false){
playerStats.CurVel = playerStats.MaxVel;
StartCoroutine(startCoolDown());
}
}
private IEnumerator startCoolDown(){
Debug.Log("start corotine");
isOnCoolDown = true;
driver.startUICooldown("Nitro");
yield return new WaitForSeconds(coolDown);
isOnCoolDown = false;
}
//// Update is called once per frame
//void Update(){
// //once cooldowns are implemented, put this on one (a long one)
// if (Input.GetKeyDown(KeyCode.LeftShift) && isOnCoolDown == false){
// playerStats.CurVel = playerStats.MaxVel;
// StartCoroutine(startCoolDown());
// }
//}
//private IEnumerator startCoolDown(){
// Debug.Log("start corotine");
// isOnCoolDown = true;
// driver.startUICooldown("Nitro");
// yield return new WaitForSeconds(coolDown);
// isOnCoolDown = false;
//}
}