Exemple #1
0
        private void BuildingManager_OnActiveBuidingTypechanged(object sender, BuildingManager.OnActiveBuildingTypeChangedEventArgs e)
        {
            if (e.activeBuildingType == null)
            {
                Hide();
                m_resourceNearbyOverlay.Hide();
            }
            else
            {
                Show(e.activeBuildingType.sprite);

                if (e.activeBuildingType.hasResourceGeneratorData)
                {
                    m_resourceNearbyOverlay.Show(e.activeBuildingType.resourceGeneratorData);
                }
                else
                {
                    m_resourceNearbyOverlay.Hide();
                }
            }
        }
Exemple #2
0
 private void BuildingManager_OnActiveBuildingTypeChanged(object sender, BuildingManager.OnActiveBuildingTypeChangedEventArgs e)
 {
     UpdateactiveBuildingTypeButton();
 }