CarmenSandiego/Assets/UdonSharp/NewspaperDisplay.cs
Jamie Greunbaum 15cf4be640 - Changed TimerOverlay to CameraOverlay and genericised it a bit.
- Made the newspaper overlay a proper CameraOverlay object.
- Added a purple trim to the round 1 walls.
- Fixed the shape and lightmaps on the round 1 doorway stairs.
- Slowed down and tweaked the opening doorway camera shot.
2026-03-24 00:18:09 -04:00

36 lines
604 B
C#

using UdonSharp;
using UnityEngine;
[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;
}
}