Ejemplo n.º 1
0
        public override void onShowed()
        {
            if (showed)
            {
                return;
            }
            showed = true;



            curState = 0;
            //   lgSelfPlayer.instance.stop();

            instance = this;
            base.onShowed();
            play();
        }
Ejemplo n.º 2
0
        public override void onClosed()
        {
            if (!showed)
            {
                return;
            }
            showed = false;



            instance = null;
            bga.gameObject.SetActive(true);
            curState = 0;
            _handle  = null;

            UiEventCenter.getInstance().onMapChanged();



            base.onClosed();
        }