- Added a tablet spawner to let players view said camera output. - Added many more reflection probes to the alleyway to try to fill in gaps. - Moved round 2 signage around to fit in the camera view better. - Round 2 sign text changed to use SDF textures for better clarity. - Created better gizmo icons for CameraAnchor and CameraSwitcher. - Light strip on modem now uses an already-available SDF texture. - Performance mode is now the default camera mode.
50 lines
983 B
C#
50 lines
983 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using CameraSystem;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
|
|
public class CameraControlSystem : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private GameObject _Console;
|
|
[SerializeField] private CameraSystem_Console _CameraSystem;
|
|
|
|
|
|
public void CameraEnabled()
|
|
{
|
|
//foreach (Camera Camera in _CameraSystem.camerasObjects)
|
|
//{
|
|
// Camera.enabled = true;
|
|
//}
|
|
|
|
_Console.SetActive(true);
|
|
|
|
//_CameraSystem.gameObject.SetActive(true);
|
|
_CameraSystem.Authorize();
|
|
|
|
//foreach (Camera Cam in _CameraSystem.camerasObjects)
|
|
//{
|
|
// Cam.gameObject.SetActive(true);
|
|
//}
|
|
}
|
|
|
|
public void CameraDisabled()
|
|
{
|
|
//foreach (Camera Camera in _CameraSystem.camerasObjects)
|
|
//{
|
|
// Camera.enabled = false;
|
|
//}
|
|
|
|
_Console.SetActive(false);
|
|
|
|
_CameraSystem.Deauthorize();
|
|
//_CameraSystem.gameObject.SetActive(false);
|
|
|
|
//foreach (Camera Cam in _CameraSystem.camerasObjects)
|
|
//{
|
|
// Cam.gameObject.SetActive(false);
|
|
//}
|
|
}
|
|
}
|