mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
Fixed Control Lock If Hit a Pitfall While Paused
- Also fixed a minor bug where you could refresh the IP if you weren't the host
This commit is contained in:
@@ -201,6 +201,18 @@ public class PlayerStats : MonoBehaviour
|
||||
else if (GameObject.FindGameObjectWithTag("FogSystem").GetComponent<ParticleSystem>().isPlaying) {
|
||||
SetWeather(Weather.Fog);
|
||||
}
|
||||
|
||||
StartCoroutine(UnPause());
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator UnPause() {
|
||||
yield return new WaitForSecondsRealtime(3f);
|
||||
|
||||
if (gameObject.transform.root.GetComponentInChildren<PlayerStats>().IsPaused) {
|
||||
GameObject PauseMenu = GameObject.FindGameObjectWithTag("PauseMenu");
|
||||
PauseMenu.GetComponent<PauseMenu>().setPlayerControlsStateServerRPC(true);
|
||||
PauseMenu.GetComponent<PauseMenu>().TurnOffPanelServerRPC();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user