コード例 #1
0
 public static void Trigger_BuildingSelectedEvent(BuildingData BuildingType, Vector3 posToSpawn, bool SpawnsUnits)
 {
     BuildingSelectedEvent.Invoke(BuildingType, posToSpawn, SpawnsUnits);
 }
コード例 #2
0
 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);
 }