- Location board syncs much more reliably, and with less NetworkCallables.

- Jail chain syncs properly and disables itself, regardless of ownership.
- Also did some work with the cameras in round 2.
This commit is contained in:
2025-12-22 03:38:38 -05:00
parent 7faece4539
commit 2281fae54e
17 changed files with 927 additions and 423 deletions
@@ -206,6 +206,8 @@ public class GameManagerRound2 : GameManagerBase
_JailPlayer.VideoIndex = (int)_CaseManager.GetCrook();
_CameraControllerRound2.ActivatePlayer1AndWideShotCameraSwitcher();
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)_AudioManager, NetworkEventTarget.All,
"PlayMusicLoop", MusicEventType.RecoverTheLoot);
}
@@ -309,6 +311,18 @@ public class GameManagerRound2 : GameManagerBase
_JailChain.Show = true;
_CameraControllerRound2.DisableAllSwitchers();
switch (_CurrentPlayerCounter % 2)
{
case 0:
_CameraControllerRound2.SwitchToPlayer1Camera();
break;
case 1:
_CameraControllerRound2.SwitchToPlayer2Camera();
break;
}
EnableInteraction("Phone Call");
}
@@ -344,10 +358,7 @@ public class GameManagerRound2 : GameManagerBase
{
_CurrentPlayerCounter++;
NetworkCalling.SendCustomNetworkEvent(
(IUdonEventReceiver)_LocationBoard,
NetworkEventTarget.All,
"ResetPanelBoard");
_LocationBoard.ResetPanelBoard();
if (UpdateHostCardInterface)
{
@@ -420,10 +431,10 @@ public class GameManagerRound2 : GameManagerBase
{
((HostCardRecoverTheLootInterface)GetHostCardInterface(RoundSegmentType.RecoverTheLoot))
.DisablePanelButton(Panel);
NetworkCalling.SendCustomNetworkEvent(
(IUdonEventReceiver)_LocationBoard,
NetworkEventTarget.All,
"RevealPanel", Panel);
_LocationBoard.RevealPanel(Panel);
_CameraControllerRound2.DisableAllSwitchers();
_CameraControllerRound2.SwitchToLocationBoardCamera();
}
[NetworkCallable]
@@ -436,12 +447,6 @@ public class GameManagerRound2 : GameManagerBase
{
_JailPlayer.PlayVideo = true;
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "PlayCrookInJail", _CaseManager.GetCrook());
SendCustomEventDelayedSeconds(nameof(HideJailChain), 1.5f);
}
public void HideJailChain()
{
_JailChain.Show = false;
}
public void PhoneRing()