public static XinkuaiSDKManager getInstance() { if (null == _instance) { _instance = new XinkuaiSDKManager(); } return(_instance); }
public void Init(object initData, System.Action <string, bool> callback) { mManager = (XinkuaiSDKManager)Sparx.Hub.Instance.mBaseSdkManager; mManager.Init(initData, callback, delegate(string tip) { Hub.Instance.TipCallBack(tip); }); }
protected virtual void InitializeComponents() { TelemetryManager = AddManager <TelemetryManager>(); UserManager = AddManager <UserManager>(); DataManager = AddManager <DataManager>(); WalletManager = AddManager <WalletManager>(); PerformanceManager = AddManager <PerformanceManager>(); LevelRewardsManager = AddManager <LevelRewardsManager>(); DataCacheManager = AddManager <DataCacheManager>(); PushManager = AddManager <PushManager>(); FetchPushMsgManager = AddManager <FetchPushMsgManager>(); ChatManager = AddManager <ChatManager>(); if (Config.GameCenterConfig.Enabled) { GameCenterManager = AddManager <GameCenterManager>(); } if (Config.GameManagerConfig.Enabled) { GameManager = AddManager <GameManager>(); } #if USE_ASSDK AsSDKManager = AddManager <AsSDKManager>(); #endif #if USE_XYSDK XYSDKManager = AddManager <XYSDKManager>(); #endif #if USE_KUAIYONGSDK KuaiYongSDKManager = AddManager <KuaiYongSDKManager>(); #endif #if USE_UCSDK UCSDKManager = AddManager <UCSDKManager>(); #endif #if USE_QIHOOSDK QiHooSDKManager = AddManager <QiHooSDKManager>(); #endif #if USE_XIAOMISDK XiaoMiSDKManager = AddManager <XiaoMiSDKManager>(); #endif #if USE_OPPOSDK OPPOSDKManager = AddManager <OPPOSDKManager>(); #endif #if USE_VIVOSDK VivoSDKManager = AddManager <VivoSDKManager>(); #endif #if USE_TENCENTSDK TencentSDKManager = AddManager <TencentSDKManager>(); #endif #if USE_WINNERSDK WinnerSDKManager = AddManager <WinnerSDKManager>(); #endif #if USE_HUAWEISDK HuaweiSDKManager = AddManager <HuaweiSDKManager>(); #endif #if USE_WINNERIOSSDK WinnerIOSSDKManager = AddManager <WinnerIOSSDKManager>(); #endif #if USE_YIJIESDK YiJieSDKManager = AddManager <YiJieSDKManager>(); #endif #if USE_EWANSDK EWanSDKManager = AddManager <EWanSDKManager>(); #endif #if USE_LBSDK LBSDKManager = AddManager <LBSDKManager>(); #endif #if USE_K7KSDK K7KSDKManager = AddManager <K7KSDKManager>(); #endif #if USE_QINGYUANSDK QingYuanSDKManager = AddManager <QingYuanSDKManager>(); #endif #if USE_AIBEISDK AibeiSDKManager = AddManager <AibeiSDKManager>(); #endif #if USE_ASDK ASDKManager = AddManager <ASDKManager>(); #endif #if USE_GOOGLE GoogleSDKManager = AddManager <GoogleSDKManager>(); #endif #if USE_M4399SDK M4399SDKManager = AddManager <M4399SDKManager>(); #endif // #if USE_WECHATSDK WeChatSDKManager = AddManager <WeChatSDKManager>(); // #endif // #if USE_ALIPAYSDK AlipaySDKManager = AddManager <AlipaySDKManager>(); // #endif #if USE_VFPKSDK VFPKSDKManager = AddManager <VFPKSDKManager>(); #endif #if USE_XINKUAISDK mBaseSdkManager = XinkuaiSDKManager.getInstance(); #endif #if USE_AOSHITANGSDK mBaseSdkManager = AoshitangSDKManager.getInstance(); #endif if (mBaseSdkManager == null) { mBaseSdkManager = new DefaultEmptySDKManager(); } for (int i = 0, cnt = Config.GameComponents.Count; i < cnt; ++i) { var type = Config.GameComponents[i]; AddManager <Manager>(type); } }