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>();
    }
Exemplo n.º 2
0
    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>();
    }
Exemplo n.º 3
0
 void Cleanup()
 {
     s_settings = null;
 }
 void Cleanup()
 {
     s_settings = null;
 }