Exemplo n.º 1
0
 // Use this for initialization
 void Awake()
 {
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGrab, OnTypeGrab);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypePass, OnTypePass);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
     Ddz2RemoteServer.AddOnVoiceChatEvt(OnUserSpeak);
 }
Exemplo n.º 2
0
 protected override void OnAwake()
 {
     base.OnAwake();
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypePass, OnTypePass);
     PdkGameManager.AddOnUserIdle(OnUserIdle);
 }
Exemplo n.º 3
0
 void Awake()
 {
     PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     Ddz2RemoteServer.AddOnUserJoinRoomEvt(OnUserJoinRoom);
     Ddz2RemoteServer.AddOnGpsInfoReceiveEvt(OnGpsInfoEvt);
 }
Exemplo n.º 4
0
 protected override void OnAwake()
 {
     gameObject.SetActive(false);
     base.OnAwake();
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypePass, OnTypePass);
 }
Exemplo n.º 5
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAllocateCds);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeFirstOut, OnFirstOut);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
 }
Exemplo n.º 6
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGameOver, OnTypeGameOver);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeFirstOut, OnTypeFirstOut);
     Ddz2RemoteServer.AddOnUserReadyEvt(OnUserReady);
 }
Exemplo n.º 7
0
 protected override void OnAwake()
 {
     gameObject.SetActive(false);
     base.OnAwake();
     PdkGameManager.AddOnUserOutEvt(OnUserOut);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeDouble, OnDouble);
 }
Exemplo n.º 8
0
        //---------------------------------------------------------------------------------------end

        void Awake()
        {
            PdkGameManager.AddOnGameInfoEvt(CheckGameStatus);
            PdkGameManager.AddOnGetRejoinDataEvt(CheckGameStatus);
            //Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeGrabSpeaker, OnTypeGrabSpeaker);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGameOver, OnTypeGameOver);
        }
Exemplo n.º 9
0
        protected override void OnAwake()
        {
            Instance = this;

            PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
            PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
            Ddz2RemoteServer.AddOnGameOverEvt(OnGameOverEvt);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);
        }
Exemplo n.º 10
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     //Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeFirstOut, OnTypeFirstOut);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, AllocateCds);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypePass, OnTypePass);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGameOver, OnTypeGameOver);
     gameObject.SetActive(false);
 }
Exemplo n.º 11
0
        protected override void OnAwake()
        {   //监听手牌操作事件
            HdCdsCtrl.AddHdSelCdsEvt(OnHdCdsCtrlEvent);
            //获得cardmanager
            _cardManager = new CardManager();
            base.OnAwake();
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypePass, OnTypePass);

            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGameOver, OnTypeGameOver);

            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeDoubleOver, OnDoubleOver);
        }
Exemplo n.º 12
0
        protected override void OnAwake()
        {
            PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
            PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
            //  Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeFirstOut, TypeFirstOut);
            // Ddz2RemoteServer.AddOnUserReadyEvt(OnUserReady);
            //  Ddz2RemoteServer.AddOnchangeDizhu(OnChangDizhu);
            // Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeDoubleOver, OnDoubleOver);
            // Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeGrab, OnTypeGrab);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);

            //TrunBackAllDipai();
        }
Exemplo n.º 13
0
        protected override void OnAwake()
        {
            PdkGameManager.AddOnGameInfoEvt(SetUserInfo);
            PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
            Ddz2RemoteServer.AddOnUserReadyEvt(OnUserReady);
            Ddz2RemoteServer.AddOnUserJoinRoomEvt(OnUserJoinRoom);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGrab, OnTypeGrab);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGrabSpeaker, OnTypeGrabSpeaker);

            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeFirstOut, TypeFirstOut);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeGameOver, OnTypeGameOver);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeDoubleOver, OnDoubleOver);

            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeBombScore, OnTypeBombScore);
            //Ddz2RemoteServer.AddOnServResponseEvtDic(GlobalConstKey.TypeOutCard, OnTypeOutCard);
        }
Exemplo n.º 14
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     Ddz2RemoteServer.AddOnHandUpEvt(OnHandUpEvt);
     Ddz2RemoteServer.AddOnGameOverEvt(OnGameOverEvt);
 }
Exemplo n.º 15
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGameInfoEvt(OnGetRejoionData);
     PdkGameManager.AddOnGetRejoinDataEvt(OnGetRejoionData);
     PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);
 }
Exemplo n.º 16
0
 protected override void OnAwake()
 {
     PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoin);
     Ddz2RemoteServer.AddOnUserReadyEvt(OnUserReady);
 }