Esempio n. 1
0
 public void Dispose()
 {
     Logger.log.Debug($"Disposing {nameof(GameCameraManager)}!");
     LayerUtils.DestroyWatermark();
     if (_pluginConfig.HMDOnly || LayerUtils.HMDOverride)
     {
         LayerUtils.SetCamera(MainCamera, LayerUtils.CameraView.Default);
     }
 }
 public void Initialize()
 {
     Logger.log.Debug($"Initializing {nameof(GameCameraManager)}!");
     if (_pluginConfig.HMDOnly || LayerUtils.HMDOverride)
     {
         LayerUtils.CreateWatermark();
         LayerUtils.SetCamera(MainCamera, LayerUtils.CameraView.FirstPerson);
     }
 }
 private static void Postfix(ref Camera ____cam)
 {
     LayerUtils.SetCamera(____cam, LayerUtils.CameraView.ThirdPerson);
 }