public void LoadPrefs() { if (string.IsNullOrEmpty(_serverOnlyScene)) { _serverOnlyScene = BuildScriptPrefs.GetServerOnlyScene(); } if (string.IsNullOrEmpty(_clientOnlyScene)) { _clientOnlyScene = BuildScriptPrefs.GetClientOnlyScene(); } if (string.IsNullOrEmpty(_singleOnlyScene)) { _singleOnlyScene = BuildScriptPrefs.GetSingleOnlyScene(); } if (string.IsNullOrEmpty(_buildFolder)) { _buildFolder = BuildScriptPrefs.GetBuildFolder(); } if (string.IsNullOrEmpty(_serverIp)) { _serverIp = BuildScriptPrefs.GetServerIP(); } if (_serverPort == -1) { _serverPort = BuildScriptPrefs.GetServerPort(); } if (_socketPort == -1) { _socketPort = BuildScriptPrefs.GetSocketPort(); } _currentMode = BuildScriptPrefs.GetCurrentMode(); _buildAndRun = BuildScriptPrefs.GetBuildAndRun(); _useLocal = BuildScriptPrefs.GetUseLocal(); _useHetzner = BuildScriptPrefs.GetUseHetzner(); _devBuild = BuildScriptPrefs.GetDevelopmentBuild(); _buildTarget = BuildScriptPrefs.GetBuildTarget(); _autoConnectOnEnable = BuildScriptPrefs.GetAutoConnectOnEnable(); }