Example #1
0
        public void UpdateBuildingInfo(BuildingData building)
        {
            //Debug.Log(building.name);

            currentSelection = XMLManager.xmlData[building.prefab];
            m_buildingOptions.SelectionChanged(currentSelection);
            m_savePanel.SelectionChanged(currentSelection);
            m_buildingPreview.Show(currentSelection);
        }
Example #2
0
 public void UpdateBuildingInfo(BuildingData building)
 {
     if (building != null)
     {
         //Debug.Log(building.name);
         currentSelection = RICOPrefabManager.prefabHash[building.prefab];
         m_buildingOptions.SelectionChanged(currentSelection);
         m_savePanel.SelectionChanged(currentSelection);
         m_buildingPreview.Show(currentSelection);
     }
 }
        /// <summary>
        /// Called when the building selection changes to update other panels.
        /// </summary>
        /// <param name="building"></param>
        internal void UpdateSelectedBuilding(BuildingData building)
        {
            if (building != null)
            {
                // Update sub-panels.
                currentSelection = Loading.xmlManager.prefabHash[building.prefab];

                buildingOptionsPanel.SelectionChanged(currentSelection);
                savePanel.SelectionChanged(currentSelection);
                previewPanel.Show(currentSelection);
            }
        }