public static System.Object GetSetting(ESetting key) { lock (s_setting) { return(s_setting.GetSettingNotNull(key)); } }
public static object GetSetting(ESetting key) { lock (setting) { return(setting.GetSettingNotNull(key)); } }
public System.Object GetSettingNotNull(ESetting key) { System.Object value; m_settings.TryGetValue(key, out value); if (value == null) { throw new UnityException("Illegal ESetting as setting!"); } return(value); }
public static void SetSetting(ESetting key, System.Object settingValue) { if (settingValue == null) { throw new UnityException("Can not set setting because value is null!"); } lock (s_setting) { s_setting.SetSetting(key, settingValue); } }
public void SetSetting(ESetting key, System.Object value) { m_settings[key] = value; }