29 lines
483 B
C#
29 lines
483 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
|
|
public class VideoLoadIndicatorGroup : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private GameObject[] _Indicators;
|
|
|
|
public void HostEnabled()
|
|
{
|
|
foreach (GameObject Indicator in _Indicators)
|
|
{
|
|
Indicator.SetActive(true);
|
|
}
|
|
}
|
|
|
|
public void HostDisabled()
|
|
{
|
|
foreach (GameObject Indicator in _Indicators)
|
|
{
|
|
Indicator.SetActive(false);
|
|
}
|
|
}
|
|
}
|