public void InitGSDK() { if (this.m_bInit) { GSDKsys.PrintLog("already init"); GSDK.SetZoneId(MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID); return; } this.m_GsdkSpeedFlag = -1000; GSDK.Init(ApolloConfig.appID, false, MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID); this.m_bInit = true; this.m_bUseSpeed = 1; Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Settings_OnCheckMna, new CUIEventManager.OnUIEventHandler(this.OnCheckMna)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Settings_OnCheckMnaTimeOut, new CUIEventManager.OnUIEventHandler(this.OnCheckMnaTimeOut)); this.SetUserName(); GSDK.SetObserver(delegate(StartSpeedRet ret) { this.m_GsdkSpeedFlag = ret.flag; }); GSDK.SetKartinObserver(delegate(KartinRet result) { GSDKsys.PrintLog("StartKartin result " + Time.realtimeSinceStartup); GSDKsys.PrintLog(result.ToString()); this.m_lastQuery = result; this.m_LastQueryStr = result.ToString(); this.m_bStartKartin = false; this.m_bDealyUpdate = true; Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); }); GSDKsys.PrintLog(" init succ"); }
public void InitSys() { if (this.m_bEnable) { return; } this.m_bEnable = false; if (!NetworkAccelerator.EnableForGSDK) { this.m_bEnable = true; } Debug.Log("HJJ init"); if (this.m_bEnable) { GSDK.Init(ApolloConfig.appID, false); this.SetUserName(); } }
public void InitGSDK(string mAppID) { GSDK.Init(mAppID, false, 1); }