Example #1
0
        public override void OnInit()
        {
            base.OnInit();
            EventHandlerComponent Event = GameCenter.EventHandle;

            Event.Subscriber((int)UIEventProtocol.UpdateMahCount, UpdateMahjongCount);
        }
Example #2
0
 private void InitBuiltinComponents()
 {
     mEventHandler = GetSystemComponent <EventHandlerComponent>();
     mLifecycle    = GetSystemComponent <GameLifecycleComponent>();
     mGameProcess  = GetSystemComponent <GameProcessComponent>();
     mDataCenter   = GetSystemComponent <DataCenterComponent>();
     mShortcuts    = GetSystemComponent <ShortcutsComponent>();
     mAssets       = GetSystemComponent <AssetsComponent>();
     mPools        = GetSystemComponent <PoolsComponent>();
     mPlayback     = GetSystemComponent <PlaybackComponent>();
     mMahjongScene = GetSystemComponent <MahjongSceneComponent>();
     mNetwork      = GetSystemComponent <NetworkComponent>();
     mHud          = GetSystemComponent <HudComponent>();
     mController   = GetSystemComponent <ControllerComponent>();
     OnInitalization();
 }