예제 #1
0
 public void CheckSVNVersion()
 {
     if (GlobalVars.DataUseAssetBundle && (TimeUtil.Now >= this.Loader.checkSVNVersionDate.AddSeconds((double)MiscData.Config.BasicConfig.CheckAssetBoundleIntervalSecond)))
     {
         Singleton <ApplicationManager> .Instance.StartCoroutine(Miscs.WWWRequestWithRetry(this.GetAssetBoundleStatusFilePath(), new Action <string>(this.GetAssetBoundleStatusCallBack), null, 5f, 3, null, null));
     }
 }
예제 #2
0
        public void TokenLoginTest()
        {
            GeneralLocalDataItem generalLocalData = Singleton <MiHoYoGameData> .Instance.GeneralLocalData;
            string url = string.Format(this.ORIGINAL_TOKEN_LOGIN_URL + "?uid={0}&token={1}", generalLocalData.Account.uid, generalLocalData.Account.token);

            Singleton <ApplicationManager> .Instance.StartCoroutine(Miscs.WWWRequestWithRetry(url, new Action <string>(this.TokenLoginTestFinishedCallBack), () => this.WWWTimeOut(new Action(this.TokenLoginTest)), 5f, 3, null, null));
        }
예제 #3
0
        public override void VerifyEmailApply()
        {
            string url = string.Format(this.ORIGINAL_VERIFY_EMAIL_APPLY_URL + "?uid={0}&token={1}", base.AccountUid, base.AccountToken);

            Singleton <ApplicationManager> .Instance.StartCoroutine(Miscs.WWWRequestWithRetry(url, new Action <string>(this.VerifyEmailApplyFinishedCallBack), () => this.WWWTimeOut(new Action(this.VerifyEmailApply)), 5f, 3, null, null));
        }
예제 #4
0
        protected override void BindTest()
        {
            string url = string.Format(this.ORIGINAL_LOGIN_URL + "?account={0}&password={1}", WWW.EscapeURL(base._accountArg1), WWW.EscapeURL(base._accountArg2));

            Singleton <ApplicationManager> .Instance.StartCoroutine(Miscs.WWWRequestWithRetry(url, new Action <string>(this.BindTestFinishedCallBack), () => this.WWWTimeOut(new Action(this.BindTest)), 5f, 3, null, null));
        }
예제 #5
0
        public void GetUserInfoByToken()
        {
            string url = string.Format(this.ORIGINAL_GET_USER_INFO_BY_TOKEN_URL + "?uid={0}&token={1}", base.AccountUid, base.AccountToken);

            Singleton <ApplicationManager> .Instance.StartCoroutine(Miscs.WWWRequestWithRetry(url, new Action <string>(this.GetUserInfoByTokenFinishedCallBack), () => this.WWWTimeOut(new Action(this.GetUserInfoByToken)), 5f, 3, null, null));
        }