/// <summary> /// 初始化的时候,获取关于声音的一些设置 /// </summary> protected AudioManager() { _localConfig = new LocalConfigManager(); _audioObject = new GameObject("AudioManager"); _audio = _audioObject.AddComponent <AudioSource> (); _audioSound = _audioObject.AddComponent <AudioSource>(); _audioToggle = System.Convert.ToBoolean(_localConfig.LoadValue("audioToggle", "true")); _volume = _localConfig.LoadValue("audioVolume", 1.0f); _soundVolume = _localConfig.LoadValue("audioSoundVolume", 1.0f); }
private GameGuidManager() { _localConfig = new LocalConfigManager(); _guidGameHall = bool.Parse(_localConfig.LoadValue(_wordGameHall, "false")); _guidRoom = bool.Parse(_localConfig.LoadValue(_wordRoom, "false")); _guidNetSelect = bool.Parse(_localConfig.LoadValue(_wordNetSelect, "false")); _guidSelect = bool.Parse(_localConfig.LoadValue(_wordSelect, "false")); _guidBorrow = bool.Parse(_localConfig.LoadValue(_wordBorrow, "false")); _guidPayback = bool.Parse(_localConfig.LoadValue(_wordPayback, "false")); _guidGame = bool.Parse(_localConfig.LoadValue(_wordGame, "false")); }