General Changes

-Edited animatpr so it doesn't have deprecated states
-Edited 321 countdown script so players can't pause during the countdown
-Added stub objects for the part switching mechanic (will need to be resized
when we get assets for them.
This commit is contained in:
Evan Nydahl
2022-04-06 13:43:37 -05:00
parent 1303aa775a
commit a291edd62e
19 changed files with 2189 additions and 1442 deletions

View File

@@ -40,6 +40,8 @@ public class PauseMenu : NetworkBehaviour {
private ResetZonesGlobal[] respawnZones;
public bool isUsable = false;
void Awake() {
respawnZones = (ResetZonesGlobal[])GameObject.FindObjectsOfType(typeof(ResetZonesGlobal));
}
@@ -54,7 +56,7 @@ public class PauseMenu : NetworkBehaviour {
void Update() {
// Listen for Pause button and not already paused
// TODO: UPDATE TO ALSO LISTEN FOR CONTROLLER PAUSE BUTTON PRESSED
if (Input.GetKeyDown(KeyCode.Escape) && PauseMenuPanel.activeInHierarchy != true) {
if (isUsable && Input.GetKeyDown(KeyCode.Escape) && PauseMenuPanel.activeInHierarchy != true) {
// Display Pause Menu
PauseMenuPanel.SetActive(true);
isViewingRunnerControls = true;