Merge branch 'GrappleBroad'

This commit is contained in:
Melbyj1125
2022-03-02 14:17:49 -06:00
6 changed files with 29 additions and 7 deletions

View File

@@ -68,6 +68,11 @@ public class PauseMenu : NetworkBehaviour {
// Have to use if checks since only the runners have these
if (player.GetComponentInChildren<PlayerStats>() != null) {
player.GetComponentInChildren<PlayerStats>().IsPaused = !newState;
// Lock the cursor
if(newState){
Cursor.lockState = CursorLockMode.Locked;
}
}
// King's Movement
@@ -82,9 +87,6 @@ public class PauseMenu : NetworkBehaviour {
// Unlock player controls
setPlayerControlsStateServerRPC(true);
// Lock the cursor
Cursor.lockState = CursorLockMode.Locked;
// Hide PauseMenu
PauseMenuPanel.SetActive(false);
}