예제 #1
0
 void OnEnable()
 {
     _targetHive = _hiveController.Hives[transform.GetSiblingIndex()];
     if (hasHiveBuilding)
     {
         _currentHiveBuilding = _targetHive.CurrentHiveBuilding;
     }
     UpdateUI();
 }
예제 #2
0
파일: Hive.cs 프로젝트: lexi89/bees
 public void OnNewHiveBuildingSelected(HiveBuilding _newHiveBuilding)
 {
     LoadHiveLevel(_hivesList.List.IndexOf(_newHiveBuilding));
 }
예제 #3
0
 public void OnNewHiveBuildingSelected(HiveBuilding _newHivebuilding)
 {
     _currentSelectedHive.OnNewHiveBuildingSelected(_newHivebuilding);
     GetComponent <State>().Exit();
 }
예제 #4
0
 public void SetupUIForNewHive(HiveBuilding newHiveBuilding, HiveBuildingManager newManager)
 {
     _hiveBuilding        = newHiveBuilding;
     _hiveBuildingManager = newManager;
     UpdateUI();
 }