public override void OnInit() { base.OnInit(); EventHandlerComponent Event = GameCenter.EventHandle; Event.Subscriber((int)UIEventProtocol.UpdateMahCount, UpdateMahjongCount); }
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(); }