- Permissions panel is fully functional.
- Host card can only be picked up by players with "Host" permission. - Podiums no longer reset on case load. - Auxiliary screens now disappear during answer reveal in final round. - Risk card placement area no longer blocks UI interaction on desktop mode. - Video player in round 2 now changes ownership and syncs correctly.
This commit is contained in:
@@ -91,6 +91,19 @@ public class CaseManager : UdonSharpBehaviour
|
||||
}
|
||||
|
||||
|
||||
public void HostEnabled()
|
||||
{
|
||||
_CaseManagerList.gameObject.SetActive(true);
|
||||
_HostCard.EnablePickup(true);
|
||||
}
|
||||
|
||||
public void HostDisabled()
|
||||
{
|
||||
_CaseManagerList.gameObject.SetActive(false);
|
||||
_HostCard.EnablePickup(false);
|
||||
}
|
||||
|
||||
|
||||
public void LoadCaseFile(CaseManagerListEntry CaseFile)
|
||||
{
|
||||
Networking.SetOwner(Networking.LocalPlayer, gameObject);
|
||||
@@ -208,11 +221,7 @@ public class CaseManager : UdonSharpBehaviour
|
||||
public string ContinueToRound1()
|
||||
{
|
||||
_Round3Manager.DeinitialiseGameMode();
|
||||
_Round2Manager.DeinitialiseGameMode();
|
||||
_Round1Manager.DeinitialiseGameMode();
|
||||
|
||||
_HostCard.SetGameManager(_Round1Manager);
|
||||
|
||||
_Round1Manager.InitialiseGameMode();
|
||||
|
||||
return "";
|
||||
@@ -220,12 +229,8 @@ public class CaseManager : UdonSharpBehaviour
|
||||
|
||||
public string ContinueToRound2()
|
||||
{
|
||||
_Round3Manager.DeinitialiseGameMode();
|
||||
_Round2Manager.DeinitialiseGameMode();
|
||||
_Round1Manager.DeinitialiseGameMode();
|
||||
|
||||
_HostCard.SetGameManager(_Round2Manager);
|
||||
|
||||
_Round2Manager.InitialiseGameMode();
|
||||
|
||||
return "";
|
||||
@@ -233,12 +238,8 @@ public class CaseManager : UdonSharpBehaviour
|
||||
|
||||
public string ContinueToRound3()
|
||||
{
|
||||
_Round3Manager.DeinitialiseGameMode();
|
||||
_Round2Manager.DeinitialiseGameMode();
|
||||
_Round1Manager.DeinitialiseGameMode();
|
||||
|
||||
_HostCard.SetGameManager(_Round3Manager);
|
||||
|
||||
_Round3Manager.InitialiseGameMode();
|
||||
|
||||
return "";
|
||||
|
||||
@@ -960,6 +960,7 @@ public class GameManagerRound1 : GameManagerBase
|
||||
for (int i = 0; i < _PlayerPodiums.Length; i++)
|
||||
{
|
||||
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "LockInChoice");
|
||||
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryMapScreen", false);
|
||||
}
|
||||
|
||||
HostCardMultipleChoiceInterface Interface =
|
||||
|
||||
@@ -85,6 +85,7 @@ public class GameManagerRound2 : GameManagerBase
|
||||
Networking.SetOwner(NewOwner, _ArrivalDisplay.gameObject);
|
||||
Networking.SetOwner(NewOwner, _LocationBoard.gameObject);
|
||||
Networking.SetOwner(NewOwner, _JailChain.gameObject);
|
||||
Networking.SetOwner(NewOwner, _JailPlayer.gameObject);
|
||||
Networking.SetOwner(NewOwner, _JailPhone.gameObject);
|
||||
|
||||
base.SetOwnershipOfObjects(NewOwner);
|
||||
|
||||
Reference in New Issue
Block a user