Ejemplo n.º 1
0
        public void _onMapChgLoad()
        {
            if (a3_expbar.instance != null)
            {
                a3_expbar.instance.CloseAgainst();
            }
            uint mapid = (
                g_mgr.g_netM.getObject(OBJECT_NAME.DATA_JOIN_WORLD) as joinWorldInfo
                ).mapid;

            if (mapid <= 0)
            {
                return;
            }

            if (m_nLoaded_MapID == mapid)
            {
                if (GRMap.CUR_POLTOVER_CB != null)
                {
                    GRMap.CUR_POLTOVER_CB();
                    GRMap.CUR_POLTOVER_CB = null;
                }
                return;
            }

            //Variant data = new Variant();
            //data["name"] = "LoadMap mapid" + mapid;
            //if ((this.g_mgr.g_uiM.getLGUI(UIName.LGUIOGLoadingImpl) as LGUIOGLoadingImpl).uiPanel != null)
            //	(this.g_mgr.g_uiM.getLGUI(UIName.LGUIOGLoadingImpl) as LGUIOGLoadingImpl).uiPanel.statusLoading.text = "LoadMap mapid" + mapid;
            //UILoading.loading.setText(data);

            loadMapRes(mapid.ToString());
        }
Ejemplo n.º 2
0
        public override void onShowed()
        {
            GRMap.DontDestroyBaseGameObject();
            StartCoroutine(LoadScene());

            refreshChooseBtns();
        }
Ejemplo n.º 3
0
        public void _onMapChgLoad()
        {
            bool flag = a3_expbar.instance != null;

            if (flag)
            {
                a3_expbar.instance.CloseAgainst();
            }
            uint mapid = (this.g_mgr.g_netM.getObject("DATA_JOIN_WORLD") as joinWorldInfo).mapid;
            bool flag2 = mapid <= 0u;

            if (!flag2)
            {
                bool flag3 = (long)this.m_nLoaded_MapID == (long)((ulong)mapid);
                if (flag3)
                {
                    bool flag4 = GRMap.CUR_POLTOVER_CB != null;
                    if (flag4)
                    {
                        GRMap.CUR_POLTOVER_CB();
                        GRMap.CUR_POLTOVER_CB = null;
                    }
                }
                else
                {
                    this.loadMapRes(mapid.ToString());
                }
            }
        }
Ejemplo n.º 4
0
        public override void onShowed()
        {
            GRMap.DontDestroyBaseGameObject();
            StartCoroutine(LoadScene());

            muNetCleint.instance.charsInfoInst.addEventListener(UI_EVENT.UI_ACT_CREATE_CHAR, OnCreateChar);
        }
Ejemplo n.º 5
0
 public override void onShowed()
 {
     GRMap.DontDestroyBaseGameObject();
     base.StartCoroutine(this.LoadScene());
     muNetCleint.instance.charsInfoInst.addEventListener(4031u, new Action <GameEvent>(this.OnCreateChar));
 }
Ejemplo n.º 6
0
 public GRMap(muGRClient m)
     : base(m)
 {
     instance = this;
 }