Beispiel #1
0
 public override void dispose()
 {
     disconect.instance = null;
     base.getComponentByPath <Button>("bt").onClick.RemoveAllListeners();
     NetClient.instance.removeEventListener(3013u, new Action <GameEvent>(this.onError));
     base.dispose();
 }
        public override void onClosed()
        {
            instance = null;

            NetClient.instance.removeEventListener(GAME_EVENT.CONN_ERR, onError);
            base.onClosed();
        }
 public override void dispose()
 {
     instance = null;
     //getComponentByPath<Button>("bt").onClick.RemoveAllListeners();
     NetClient.instance.removeEventListener(GAME_EVENT.CONN_ERR, onError);
     base.dispose();
 }
        public override void onShowed()
        {
            transform.SetAsLastSibling();
            instance = this;
            NetClient.instance.addEventListener(GAME_EVENT.CONN_ERR, onError);

            //getGameObjectByPath("info/line").SetActive(showLine);
            //showLine = false;

            setErrorType(ERROR_TYPE_DISCONNECT);

            base.onShowed();

            if (a3_wing_skin.instance != null)
            {
                a3_wing_skin.instance.wingAvatar.SetActive(false);
            }
            //if (a3_summon.instan && a3_summon.instan.m_selectedSummon)
            //{
            //    a3_summon.instan.m_selectedSummon.SetActive(false);
            //}
            if (a3_summon_new.getInstance)
            {
                //for (int i = 0;i< a3_summon_new.getInstance.Avatorlist.Count;i++)
                //{
                //    if (a3_summon_new.getInstance.Avatorlist[i] != null&& a3_summon_new.getInstance.Avatorlist[i].activeSelf)
                //    {
                //        a3_summon_new.getInstance.Avatorlist[i].SetActive(false);
                //    }
                //}
                if (a3_summon_new.getInstance.avatorobj != null)
                {
                    a3_summon_new.getInstance.avatorobj.SetActive(false);
                }
                if (a3_summon_new.getInstance.avator_look != null)
                {
                    a3_summon_new.getInstance.avator_look.SetActive(false);
                }
            }

            NewbieModel.getInstance().hide();

            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_DIS_CONECT);
        }
Beispiel #5
0
        public override void onShowed()
        {
            base.transform.SetAsLastSibling();
            disconect.instance = this;
            NetClient.instance.addEventListener(3013u, new Action <GameEvent>(this.onError));
            this.setErrorType(disconect.ERROR_TYPE_DISCONNECT);
            base.onShowed();
            bool flag = a3_wing_skin.instance != null;

            if (flag)
            {
                a3_wing_skin.instance.wingAvatar.SetActive(false);
            }
            bool flag2 = a3_summon.instan && a3_summon.instan.m_selectedSummon;

            if (flag2)
            {
                a3_summon.instan.m_selectedSummon.SetActive(false);
            }
            NewbieModel.getInstance().hide();
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_DIS_CONECT);
        }
Beispiel #6
0
 public override void onClosed()
 {
     disconect.instance = null;
     NetClient.instance.removeEventListener(3013u, new Action <GameEvent>(this.onError));
     base.onClosed();
 }