Exemple #1
0
    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);
    }
Exemple #2
0
    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);
    }