public static SVMServiceBuildingDetailPanel Get() { if (instance) { return(instance); } UIView view = FindObjectOfType <UIView>(); SVMUtils.createUIElement(out UIPanel panelObj, view.transform); return(instance = panelObj.gameObject.AddComponent <SVMServiceBuildingDetailPanel>()); }
public void Hide() { m_buildingInfoPanel.Hide(); SVMServiceBuildingDetailPanel.Get().OpenAt(ServiceSystemDefinition.from(Singleton <BuildingManager> .instance.m_buildings.m_buffer[buildingIdSel.Building].Info).FirstOrDefault()); }
private static bool getCurrentSelectedId(out int currentDistrict) { currentDistrict = SVMServiceBuildingDetailPanel.Get().getCurrentSelectedDistrictId(); return(currentDistrict >= 0); }