Merge branch 'WeatherPause'

This commit is contained in:
Melbyj1125
2022-03-02 12:58:58 -06:00
32 changed files with 156 additions and 121 deletions

View File

@@ -60,20 +60,8 @@ public class PauseMenu : MonoBehaviour {
// Find the local player
if (player.GetComponent<NetworkObject>().IsLocalPlayer) {
// Have to use if checks since only the runners have these
if (player.GetComponentInChildren<MoveStateManager>() != null) {
player.GetComponentInChildren<MoveStateManager>().enabled = newState;
}
if (player.GetComponentInChildren<AerialStateManager>() != null) {
player.GetComponentInChildren<AerialStateManager>().enabled = newState;
}
if (player.GetComponentInChildren<OffenseStateManager>() != null) {
player.GetComponentInChildren<OffenseStateManager>().enabled = newState;
}
if (player.GetComponentInChildren<DashStateManager>() != null) {
player.GetComponentInChildren<DashStateManager>().enabled = newState;
}
if (player.GetComponentInChildren<NitroStateManager>() != null) {
player.GetComponentInChildren<NitroStateManager>().enabled = newState;
if (player.GetComponentInChildren<PlayerStats>() != null) {
player.GetComponentInChildren<PlayerStats>().IsPaused = !newState;
}
// King's Movement