- Added floor tiles to round 1 and 2 areas.
- Added a door and steps to round 1 area. - Added an entrance teleport button to the spawn area. - Host teleport buttons disabled if the player doesn't have host permissions. - Reflection probes tweaked a bit.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -32,12 +32,13 @@ public class CaseManager : UdonSharpBehaviour
|
||||
[SerializeField] private Texture[] CrookPortraits;
|
||||
|
||||
[Space, Header("Managers")]
|
||||
[SerializeField] private PermissionsPanel _PermissionsPanel;
|
||||
[SerializeField] private GameManagerRound1 _Round1Manager;
|
||||
[SerializeField] private GameManagerRound2 _Round2Manager;
|
||||
[SerializeField] private GameManagerRound3 _Round3Manager;
|
||||
|
||||
[Space]
|
||||
[SerializeField] private HostCardManager _HostCard;
|
||||
|
||||
[Space]
|
||||
[SerializeField] private CaseManagerListView _CaseManagerList;
|
||||
[SerializeField] private Button _HostTeleportButton;
|
||||
|
||||
@@ -68,7 +69,7 @@ public class CaseManager : UdonSharpBehaviour
|
||||
{
|
||||
if (Player.isLocal)
|
||||
{
|
||||
_CaseManagerList.gameObject.SetActive(Player.isInstanceOwner || Player.isMaster);
|
||||
_CaseManagerList.gameObject.SetActive(Player.isInstanceOwner || Player.isMaster || _PermissionsPanel.IsPlayerHost(Player));
|
||||
}
|
||||
|
||||
base.OnPlayerJoined(Player);
|
||||
@@ -212,8 +213,6 @@ public class CaseManager : UdonSharpBehaviour
|
||||
Debug.LogError("[CaseManager] Malformed case file. " + ErrorString);
|
||||
}
|
||||
|
||||
_HostTeleportButton.gameObject.SetActive(true);
|
||||
|
||||
RequestSerialization();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user