void Awake() { if (s_settings != null) { throw new System.InvalidProgramException("there is more than one level settings object!"); } s_settings = this; HFTArgParser p = new HFTArgParser(); p.TryGet<int>("hft-numgames", ref numGames); m_playerSpawner = GetComponent<PlayerSpawner>(); }
void Awake() { if (s_settings != null) { throw new System.InvalidProgramException("there is more than one level settings object!"); } s_settings = this; HFTArgParser p = new HFTArgParser(); p.TryGet <int>("num-games", ref numGames); m_playerSpawner = GetComponent <PlayerSpawner>(); }
void Cleanup() { s_settings = null; }
void Cleanup() { s_settings = null; }