mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-12 04:15:16 -05:00
Unlock Cursor after transitioning from the game scene
This commit is contained in:
@@ -23,6 +23,9 @@ public class LobbyUI : NetworkBehaviour {
|
||||
|
||||
public override void NetworkStart()
|
||||
{
|
||||
// Unlock the player cursor if they get sent back here after a match
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
|
||||
if (IsClient)
|
||||
{
|
||||
lobbyPlayers.OnListChanged += HandleLobbyPlayersStateChanged;
|
||||
|
||||
@@ -24,6 +24,9 @@ public class ConnectButtons : MonoBehaviour {
|
||||
ErrorPanel.SetActive(false);
|
||||
|
||||
PlayerPrefs.GetString("PlayerName");
|
||||
|
||||
// Unlock the player cursor if they got sent back to the title screen from in game
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
}
|
||||
|
||||
// Connect to the dedicated server
|
||||
|
||||
Reference in New Issue
Block a user