mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-24 03:14:39 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user