예제 #1
0
        public override void OnUpdate()
        {
            CheckToggles();

            if (!ConfigWatcher.UpdateIfDirty() && _cameraParent != null)
            {
                return;
            }

            var mainCamera = Camera.main;

            if (mainCamera == null)
            {
                return;
            }
            _cameraParent = mainCamera.gameObject;

            UpdateCameras();
        }
예제 #2
0
 public override void OnApplicationQuit()
 {
     ConfigWatcher.Unload();
 }