private void onChangeDistrictColor(UIComponent component, Color value) { SVMUtils.doLog("onChangeDistrictColor"); if (!getCurrentSelectedId(out int currentDistrict)) { return; } extension.SetColorDistrict((uint)currentDistrict, value); eventOnColorDistrictChanged?.Invoke(value); }
private void onChangeDistrictColor(UIComponent component, Color value) { LogUtils.DoLog("onChangeDistrictColor"); if (!getCurrentSelectedId(out int currentDistrict)) { return; } SingletonLite <T> .instance.GetExtensionDistrict().SetColor((uint)currentDistrict, value); eventOnColorDistrictChanged?.Invoke(value); }
private void onDistrictChanged() { if (getCurrentSelectedId(out int currentDistrict)) { mainPanel.isVisible = true; if (m_districtColor != null) { m_districtColor.selectedColor = Singleton <T> .instance.GetSSD().GetTransportExtension().GetColorDistrict((uint)currentDistrict); } eventOnDistrictSelectionChanged?.Invoke(currentDistrict); } else { mainPanel.isVisible = false; } }