Podium pedestal height is now synced across clients.
This commit is contained in:
parent
058dab4318
commit
f4dc5dd668
@ -383,7 +383,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -511,7 +511,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -846,7 +846,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -934,7 +934,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1213,7 +1213,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 2100000, guid: 35630e38b4e5ffb40b44ec5348b4333f, type: 2}
|
||||||
m_Color: {r: 0, g: 0, b: 0, a: 1}
|
m_Color: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
@ -1299,7 +1299,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1502,7 +1502,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1608,7 +1608,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1624,6 +1624,7 @@ MonoBehaviour:
|
|||||||
_RiskCards: {fileID: 5882532645313673403}
|
_RiskCards: {fileID: 5882532645313673403}
|
||||||
_Buzzer: {fileID: 1145695079806890482}
|
_Buzzer: {fileID: 1145695079806890482}
|
||||||
_Pedestal: {fileID: 6438408659115984156}
|
_Pedestal: {fileID: 6438408659115984156}
|
||||||
|
_VideoLoadIndicator: {fileID: 0}
|
||||||
_AuxiliaryVideoScreen: {fileID: 0}
|
_AuxiliaryVideoScreen: {fileID: 0}
|
||||||
_AuxiliaryMapScreen: {fileID: 0}
|
_AuxiliaryMapScreen: {fileID: 0}
|
||||||
_OwnershipInteract: {fileID: 2288460166211710674}
|
_OwnershipInteract: {fileID: 2288460166211710674}
|
||||||
@ -1709,7 +1710,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1759,7 +1760,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1809,7 +1810,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -1946,7 +1947,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializationData:
|
serializationData:
|
||||||
SerializedFormat: 2
|
SerializedFormat: 0
|
||||||
SerializedBytes:
|
SerializedBytes:
|
||||||
ReferencedUnityObjects: []
|
ReferencedUnityObjects: []
|
||||||
SerializedBytesString:
|
SerializedBytesString:
|
||||||
@ -2407,8 +2408,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -2536,8 +2536,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -2665,8 +2664,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -2794,8 +2792,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -2913,8 +2910,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2917566267679481404, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3141,8 +3137,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2917566267679481404, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3385,8 +3380,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3509,8 +3503,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3614,8 +3607,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2917566267679481404, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3743,8 +3735,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 7568050221486147178, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
- target: {fileID: 8201583978510698366, guid: 951f1ffb73ac3374e904b18fa5f6d87a,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
@ -3832,8 +3823,7 @@ PrefabInstance:
|
|||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: serializationData.Prefab
|
propertyPath: serializationData.Prefab
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2917566267679481404, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
objectReference: {fileID: 0}
|
||||||
type: 3}
|
|
||||||
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
- target: {fileID: 6482999695541853627, guid: d83c707b77b55e84daa10ea35b1e8fdf,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,8 @@ public class PlayerPodium : UdonSharpBehaviour
|
|||||||
[UdonSynced, FieldChangeCallback(nameof(ShowScoreCard))] private bool _ShowScoreCard = false;
|
[UdonSynced, FieldChangeCallback(nameof(ShowScoreCard))] private bool _ShowScoreCard = false;
|
||||||
[UdonSynced, FieldChangeCallback(nameof(FlashScoreboard))] private bool _FlashScoreboard = false;
|
[UdonSynced, FieldChangeCallback(nameof(FlashScoreboard))] private bool _FlashScoreboard = false;
|
||||||
|
|
||||||
|
[UdonSynced, FieldChangeCallback(nameof(PedestalHeight))] private float _PedestalHeight = 0.0f;
|
||||||
|
|
||||||
[UdonSynced, FieldChangeCallback(nameof(EnableOwnershipTransfer))] private bool _EnableOwnershipTransfer = true;
|
[UdonSynced, FieldChangeCallback(nameof(EnableOwnershipTransfer))] private bool _EnableOwnershipTransfer = true;
|
||||||
|
|
||||||
[Space]
|
[Space]
|
||||||
@ -129,11 +131,8 @@ public class PlayerPodium : UdonSharpBehaviour
|
|||||||
|
|
||||||
private void AdjustPedestalHeight(VRCPlayerApi Player)
|
private void AdjustPedestalHeight(VRCPlayerApi Player)
|
||||||
{
|
{
|
||||||
_Pedestal.transform.localPosition = new Vector3(
|
PedestalHeight = Player.GetAvatarEyeHeightAsMeters();
|
||||||
_Pedestal.transform.localPosition.x,
|
RequestSerialization();
|
||||||
-Player.GetAvatarEyeHeightAsMeters(),
|
|
||||||
_Pedestal.transform.localPosition.z
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[NetworkCallable]
|
[NetworkCallable]
|
||||||
@ -370,6 +369,21 @@ public class PlayerPodium : UdonSharpBehaviour
|
|||||||
get => _FlashScoreboard;
|
get => _FlashScoreboard;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private float PedestalHeight
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_PedestalHeight = value;
|
||||||
|
_Pedestal.transform.localPosition = new Vector3(
|
||||||
|
_Pedestal.transform.localPosition.x,
|
||||||
|
-_PedestalHeight,
|
||||||
|
_Pedestal.transform.localPosition.z
|
||||||
|
);
|
||||||
|
}
|
||||||
|
get => _PedestalHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private bool EnableOwnershipTransfer
|
private bool EnableOwnershipTransfer
|
||||||
{
|
{
|
||||||
set
|
set
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user