public override void OnUpdate() { CheckToggles(); if (!ConfigWatcher.UpdateIfDirty() && _cameraParent != null) { return; } var mainCamera = Camera.main; if (mainCamera == null) { return; } _cameraParent = mainCamera.gameObject; UpdateCameras(); }
public override void OnApplicationQuit() { ConfigWatcher.Unload(); }