- CameraAnchor can now have camera rotation offsets as well as FOV changes.
- CameraAnchor no longer needs to sync with LightSync, and so does not. - Added noise texture to velvet rope material. - Improved lightmaps on velvet rope model. - Round 1 podiums now return empty strings when no player owns them. - Winning player camera in round 2 now has rotation offset for a later effect. - Jail phone syncs active status better, and finds a player to follow better.
This commit is contained in:
@@ -16,7 +16,7 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
[SerializeField] private GameManagerRound1 _GameManager;
|
||||
[SerializeField] private GameObject _TeleportButton;
|
||||
|
||||
[UdonSynced, FieldChangeCallback(nameof(PlayerName))] private string _PlayerName = "Player";
|
||||
[UdonSynced, FieldChangeCallback(nameof(PlayerName))] private string _PlayerName = "";
|
||||
[UdonSynced] private int _PlayerID = -1;
|
||||
[UdonSynced, FieldChangeCallback(nameof(PlayerScore))] private int _PlayerScore = 50;
|
||||
[UdonSynced, FieldChangeCallback(nameof(ShowScoreCard))] private bool _ShowScoreCard = false;
|
||||
@@ -121,7 +121,7 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
[NetworkCallable]
|
||||
public void ResetOwner()
|
||||
{
|
||||
PlayerName = "Player " + PlayerNumber;
|
||||
PlayerName = "";
|
||||
_PlayerID = -1;
|
||||
|
||||
_Pedestal.EnableStandInteractLocally(false);
|
||||
@@ -322,7 +322,14 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
set
|
||||
{
|
||||
_PlayerName = value;
|
||||
_NameplateUI.text = value;
|
||||
if (_PlayerName == "")
|
||||
{
|
||||
_NameplateUI.text = "Player " + PlayerNumber;
|
||||
}
|
||||
else
|
||||
{
|
||||
_NameplateUI.text = value;
|
||||
}
|
||||
}
|
||||
get => _PlayerName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user