NDream.AirConsole.Editor.Extentions.InitSettings C# (CSharp) Méthode

InitSettings() public static méthode

public static InitSettings ( ) : void
Résultat void
		public static void InitSettings () {

			if (EditorPrefs.GetInt ("webServerPort") != 0) {
				Settings.webServerPort = EditorPrefs.GetInt ("webServerPort");
			}

			if (EditorPrefs.GetInt ("webSocketPort") != 0) {
				Settings.webSocketPort = EditorPrefs.GetInt ("webSocketPort");
			}

			if (EditorPrefs.GetBool ("debugInfo", true) != true) {
				Settings.debug.info = EditorPrefs.GetBool ("debugInfo");
			}

			if (EditorPrefs.GetBool ("debugWarning", true) != true) {
				Settings.debug.warning = EditorPrefs.GetBool ("debugWarning");
			}

			if (EditorPrefs.GetBool ("debugError", true) != true) {
				Settings.debug.error = EditorPrefs.GetBool ("debugError");
			}

		}