public GameDataRepository() { _gameConfigCache = CallContext <GameConfigCache> .GetData("GameConfigCache"); Factions = new FactionsCollection(); Units = new UnitRecords(); Stacks = new StacksCollection(); Settlements = new SettlementsCollection(); }
public List<string> factionNames = null; //!< List of faction names /** * Called when the script is loaded, before the game starts */ void Awake() { S = this; // Create an associative array of the units by faction factionsArray = new Dictionary<string, GameObject>(); foreach (GameObject faction in factions) { factionsArray.Add (faction.name, faction); factionNames.Add (faction.name); } }