void OnEnable() { _targetHive = _hiveController.Hives[transform.GetSiblingIndex()]; if (hasHiveBuilding) { _currentHiveBuilding = _targetHive.CurrentHiveBuilding; } UpdateUI(); }
public void OnNewHiveBuildingSelected(HiveBuilding _newHiveBuilding) { LoadHiveLevel(_hivesList.List.IndexOf(_newHiveBuilding)); }
public void OnNewHiveBuildingSelected(HiveBuilding _newHivebuilding) { _currentSelectedHive.OnNewHiveBuildingSelected(_newHivebuilding); GetComponent <State>().Exit(); }
public void SetupUIForNewHive(HiveBuilding newHiveBuilding, HiveBuildingManager newManager) { _hiveBuilding = newHiveBuilding; _hiveBuildingManager = newManager; UpdateUI(); }