Beispiel #1
0
 void Awake()
 {
     PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
     PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
     Ddz2RemoteServer.AddOnUserJoinRoomEvt(OnUserJoinRoom);
     Ddz2RemoteServer.AddOnGpsInfoReceiveEvt(OnGpsInfoEvt);
 }
Beispiel #2
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);
        }