Jamie Greunbaum f34a7b6147 - Video load indicators are now prefabs.
- Video load indicators now properly sync and update for all clients.
- Updated lightmaps for some of the walls.
2025-09-29 14:51:21 -04:00

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;
}
}