static public void LoadPreferences() { farClipPlanes = new int[6]; farClipPlanes[0] = 1024; farClipPlanes[1] = 512; farClipPlanes[2] = 256; farClipPlanes[3] = 128; farClipPlanes[4] = 64; farClipPlanes[5] = 32; viewDistance = PlayerPrefs.GetInt("ViewDistance", 0); showFPS = PlayerPrefs.GetInt("ShowFPS", 0) != 0; showHelp = PlayerPrefs.GetInt("ShowHelp", 1) != 0; showEngineStats = PlayerPrefs.GetInt("ShowEngineStats", 0) != 0; visibleStrategy = (SectorManagerUnity.VisibleStrategy) System.Enum.Parse(typeof(SectorManagerUnity.VisibleStrategy), PlayerPrefs.GetString("VisibleStrategy", "All"), true); }
static public void LoadPreferences() { farClipPlanes = new int[6]; farClipPlanes[0] = 1024; farClipPlanes[1] = 512; farClipPlanes[2] = 256; farClipPlanes[3] = 128; farClipPlanes[4] = 64; farClipPlanes[5] = 32; viewDistance = PlayerPrefs.GetInt("ViewDistance", 0); showFPS = PlayerPrefs.GetInt("ShowFPS", 0) != 0; showHelp = PlayerPrefs.GetInt("ShowHelp", 1) != 0; showEngineStats = PlayerPrefs.GetInt("ShowEngineStats", 0) != 0; visibleStrategy = (SectorManagerUnity.VisibleStrategy)System.Enum.Parse(typeof(SectorManagerUnity.VisibleStrategy), PlayerPrefs.GetString("VisibleStrategy", "All"), true); }