using UdonSharp; using UnityEngine; using UnityEngine.Device; using VRC.SDKBase; using VRC.Udon; [UdonBehaviourSyncMode(BehaviourSyncMode.Manual)] public class NewspaperDisplay : UdonSharpBehaviour { [SerializeField] private GameObject _Camera; [SerializeField] private GameObject[] _Screens; [UdonSynced, FieldChangeCallback(nameof(Active))] private bool _Active; public void Activate(bool Activate) { Active = Activate; RequestSerialization(); } private bool Active { set { _Active = value; _Camera.SetActive(_Active); foreach (GameObject Screen in _Screens) { Screen.SetActive(_Active); } } get => _Active; } }