public void Dispose() { _blueRobotFactory.Dispose(); _blueRobotFactory = null; _redRobotFactory.Dispose(); _redRobotFactory = null; _NonToxicLocations = null; RadioMessages = null; ToxicLocations = null; }
public GameController(RobotFactory redRobotFactory, RobotFactory blueRobotFactory, int rndSeed) { _redRobotFactory = redRobotFactory; _blueRobotFactory = blueRobotFactory; RedTeamName = redRobotFactory.TeamName; BlueTeamName = blueRobotFactory.TeamName; Rnd = new Random(rndSeed); TimeoutsEnabled = true; }