public static void Trigger_BuildingSelectedEvent(BuildingData BuildingType, Vector3 posToSpawn, bool SpawnsUnits) { BuildingSelectedEvent.Invoke(BuildingType, posToSpawn, SpawnsUnits); }
private void SetUpButtons(BuildingData buildingType, int index) { _Buttons[index].image.sprite = buildingType.ImagesForObjects[index]; _Buttons[index].GetComponentInChildren <Text>().text = buildingType.TextForButtons[index]; _Buttons[index].gameObject.SetActive(true); }