mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-28 13:24:07 -05:00
Merge branch 'GrappleBroad'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user