- Video load indicators now properly sync and update for all clients. - Updated lightmaps for some of the walls.
28 lines
590 B
C#
28 lines
590 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
using VRC.Udon.Serialization.OdinSerializer;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
|
|
public class VideoLoadIndicatorGroup : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private GameObject[] _Indicators;
|
|
|
|
private readonly Vector3 _EnabledPosition = Vector3.zero;
|
|
private readonly Vector3 _DisabledPosition = new Vector3(0.0f, -1000.0f, 0.0f);
|
|
|
|
|
|
public void HostEnabled()
|
|
{
|
|
transform.localPosition = _EnabledPosition;
|
|
}
|
|
|
|
public void HostDisabled()
|
|
{
|
|
transform.localPosition = _DisabledPosition;
|
|
}
|
|
}
|