private void InstanceOnOnActiveBuildingTypeChange(object sender, BuildingManager.OnActiveBuildingTypeChangeEventArgs e) { BuildingTypeSO buildingType = e.ActiveBuildingType; if (buildingType == null) { Hide(); } else { Show(buildingType.sprite); } }
private void BuildingManager_OnActiveBuildingTypeChange(object sender, BuildingManager.OnActiveBuildingTypeChangeEventArgs eventArgs) { if (eventArgs.activeBuildingType == null) { Hide(); resourceNearbyOverlay.Hide(); } else { Show(eventArgs.activeBuildingType.sprite); if (eventArgs.activeBuildingType.hasResourceGeneratorData) { resourceNearbyOverlay.Show(eventArgs.activeBuildingType.resourceGeneratorData); } else { resourceNearbyOverlay.Hide(); } }; }
private void BuildingManager_OnActiveBuildingTypeChange(object sender, BuildingManager.OnActiveBuildingTypeChangeEventArgs e) { UpdateActiveBuildingTypeButton(); }