Example #1
0
        public static void UpdateCameraController()
        {
            try
            {
                if (Config.Enabled && Config.CustomMaxCameraDistance)
                {
                    _cameraController.maxOrthographicSizeDebug = _cameraController.maxOrthographicSize = Config.MaxCameraDistance;
                }
                else
                {
                    _cameraController.maxOrthographicSizeDebug = _cameraController.maxOrthographicSize = CameraController.DEFAULT_MAX_ORTHO_SIZE;
                }

                UpdateQueueManager.EnqueueAction(UpdateCameraOrthographicsSize);
            }
            catch (Exception e)
            {
                _logger.Log("Update camera controller failed");
                _logger.Log(e);
            }
        }
Example #2
0
 public static void Prefix()
 {
     UpdateQueueManager.OnGameUpdate();
 }