Beispiel #1
0
        protected override void UnloadData()
        {
            try
            {
                if (!MyAPIGateway.Utilities.IsDedicated)
                {
                    // restore original FOV for camera definitions as they are not reloaded in between world loads which means removing the mod will not reset the FOV.
                    var def = GetCameraDefinition(CAMERA_SMALL_ID);

                    if (def != null)
                    {
                        def.MaxFov = OriginalCameraFovSmall;
                    }

                    def = GetCameraDefinition(CAMERA_LARGE_ID);

                    if (def != null)
                    {
                        def.MaxFov = OriginalCameraFovLarge;
                    }
                }
            }
            catch (Exception e)
            {
                Log.Error(e);
            }

            Instance = null;
            Log.Close();
        }
Beispiel #2
0
 public override void LoadData()
 {
     Instance      = this;
     Log.ModName   = "Camera Panning";
     Log.AutoClose = false;
 }