void Awake() { if (s_settings != null) { throw new System.InvalidProgramException("there is more than one game settings object!"); } s_settings = this; }
void Cleanup() { s_settings = null; }