private void Awake() { if (m_DownloadButton != null) { m_DownloadButton.onClick.AddListener(OnClickDownloadButton); } if (m_AutoShow) { SetIdentifyer(TDAppConfigTable.GetRandomExtensionConfig()); } }
public bool CheckAppHasNewVersion() { var data = TDAppConfigTable.GetConfigHandler(Application.identifier); if (data == null || string.IsNullOrEmpty(data.version)) { return(false); } float configVersion = SafetyParseFloat(data.version); float version = SafetyParseFloat(Application.version); return(configVersion > version); }
protected void QuitGameWithMsg(string msg) { if (m_IsBeHacked) { return; } m_IsBeHacked = true; //Timer.S.Post2Scale(ShowErrorTipsTick, 5); //Timer.S.Post2Scale(QuitApplicationTick, 8); DataAnalysisMgr.S.CustomEventSingleton(DataAnalysisDefine.FAKE_APP, Application.identifier); if (m_OfficialVersionTimer <= 0) { if (TDAppConfigTable.CheckIsFakeApp(Application.identifier)) { m_OfficialVersionTimer = Timer.S.Post2Scale(ShowOfficalVersionAD, 1, -1); } } #if UNITY_EDITOR Log.e("Your version is unsafe!:" + msg); #endif }
public void SetIdentifyer(string identifyer) { var data = TDAppConfigTable.GetConfigHandler(identifyer); }
protected override void OnPanelOpen(params object[] args) { m_HandlerList = TDAppConfigTable.GetConfigHandlerList(); m_ListView.SetDataCount(m_HandlerList.Count); }