Пример #1
0
        void OnCityBuildingHovered(CityBuildingHoverEvent e)
        {
            if (currentModel == null)
            {
                return;
            }

            CityBuildingModel cityBuilding = e.Building;

            if (cityBuilding == null)
            {
                cityBuilding = currentModel.AssignedBuilding;
            }

            ConfigureAndShowForModel(currentModel, cityBuilding);
        }
Пример #2
0
 void OnCityBuildingHovered(CityBuildingHoverEvent e)
 {
     UpdateOutlineColor(e.Building == LinkedModel);
 }
Пример #3
0
 private void Awake()
 {
     hoverEvent = new CityBuildingHoverEvent(null);
 }
 void OnCityBuildingHovered(CityBuildingHoverEvent e)
 {
     ConfigureForBuilding(e.Building);
 }