- GameManagerRound2 now uses podium owners to determine players.

- Jail phone now runs its callback as the GameManagerRound2 owner.
- Actually updated the camera system repository this time. Finally.
This commit is contained in:
2026-04-26 18:00:02 -04:00
parent f10f7b6fe7
commit 0a98c69770
13 changed files with 118 additions and 113 deletions
@@ -93,16 +93,13 @@ public class GameManagerRound2 : GameManagerBase
{
if (i < CurrentWinningPlayers.Length)
{
Debug.Log("[GameManagerRound2] Setting player " + (i+1) + " to " + CurrentWinningPlayers[i]);
if (!_PlayerPodiums[i].SetPlayer(CurrentWinningPlayers[i]))
{
Debug.Log("[GameManagerRound2] No valid player found; resetting podium owner...");
_PlayerPodiums[i].ResetOwner(true);
}
}
else
{
Debug.Log("[GameManagerRound2] Resetting podium " + (i+1) + " owner to default.");
_PlayerPodiums[i].ResetOwner(true);
}
}
@@ -239,12 +236,9 @@ public class GameManagerRound2 : GameManagerBase
_CurrentPlayerCounter = 0;
_RoundIsOver = false;
_Players = _CaseManager.GetCurrentWinningPlayers();
if (_Players == null || _Players.Length != 2)
for (int i = 0; i < _PlayerPodiums.Length && i < _Players.Length; i++)
{
_Players = new string[2];
_Players[0] = Networking.GetOwner(gameObject).displayName;
_Players[1] = _Players[0];
_Players[i] = _PlayerPodiums[i].GetPlayer();
}
if (Networking.LocalPlayer == _CaseManager.GetHostOwner())
@@ -269,6 +263,8 @@ public class GameManagerRound2 : GameManagerBase
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)_AudioManager, NetworkEventTarget.All,
"PlayMusicLoop", MusicEventType.RecoverTheLoot);
RequestSerialization();
}
public void OnTheRightTrack()
@@ -598,6 +594,7 @@ public class GameManagerRound2 : GameManagerBase
_CameraControllerRound2.SwitchToHostAndWinnerCamera();
}
[NetworkCallable]
public void PlayJailCall()
{
_PlayingJailCall = true;