public bool Build() { Debug.Log("Building Set"); if (CanAffordSet()) { foreach (dStructurePlacement spd in _set) { HomelandsStructure newStructure = StructureFactory.Make(spd.location._game, spd); spd.location._structure = newStructure; _player._resources.Pay(spd.data.cost); _player._game._locations[spd.location._pos]._structure = newStructure; _player._buildQueue._queue.Remove(spd); } return(true); } else { Debug.Log(_player._name + " can't afford the set!"); return(false); } }