void Start() { if (!info) { info = FindObjectOfType <TownHallInfoManager>(); } if (!gameManager) { gameManager = FindObjectOfType <GameManager>(); } slots = GetComponentsInChildren <TownHouseSlot>(); SetSlotCount(0); }
// Start is called before the first frame update void Start() { if (!info) { info = FindObjectOfType <TownHallInfoManager>(); } if (!townHallManager) { townHallManager = FindObjectOfType <TownHallManager>(); } if (!townHouseManager) { townHouseManager = FindObjectOfType <TownHouseManager>(); } }
void Start() { if (!info) { info = FindObjectOfType <TownHallInfoManager>(); } if (townHallBuildings == null || townHallBuildings.Length == 0) { townHallBuildings = GetComponentsInChildren <TownHallController>(); } if (townHallBuildings.Length > 0) { activeTownHall = townHallBuildings[0]; } }