Ejemplo n.º 1
0
        protected override void OnAwake()
        {
            Instance = this;

            PdkGameManager.AddOnGameInfoEvt(OnGameInfo);
            PdkGameManager.AddOnGetRejoinDataEvt(OnRejoinGame);
            Ddz2RemoteServer.AddOnGameOverEvt(OnGameOverEvt);
            PdkGameManager.AddOnServResponseEvtDic(GlobalConstKey.TypeAllocate, OnAlloCateCds);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 场景销毁后,重置静态变量
 /// </summary>
 private void OnDestroy()
 {
     Instance = null;
 }