public void Clean() {// clean the scene after endgame foreach (Team t in m_teams) { m_factory.DestroyTeam(t); } m_teams = null; m_configuration = null; m_currentMap.CleanGraphics(); Material.Destroy(m_currentMap.Material); m_currentMap = null; m_points.Clear(); }
public Game(string configurationPath = "") { m_factory = new Factory(this); m_configuration = new GameConfigurator(); m_configuration.LoadFileConfiguration(configurationPath, true); }