public void UpdatedRegion_CB(string jsonSingleRegionDS) { Region r = JsonUtility.FromJson <Region>(jsonSingleRegionDS); Region[] rs = new Region[1]; rs[0] = r; UpdateRDictBy(rs); RegionUpdatedEvt evt = new RegionUpdatedEvt(); evt.newRegion = r; _signalBus.Fire(evt); }
void OnRegionUpdatedEvt(RegionUpdatedEvt args) { Region r = args.newRegion; if (!Has_rDDN(r._rName)) { rDDNAddByText(r._rName); } Region[] rset = new Region[1]; rset[0] = r; Render(rset); sDDN.value = 0; sDDN.RefreshShownValue(); rDDNSelect(r._rName); BlockScreen(false); }