Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | while (!SDKUtility.Instance.AssetCopyFinished)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.5f, progressBuf, progressBuf + 0.5f);
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.3f, progressBuf, progressBuf + 0.3f);
|
| | | yield return null;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | finally
|
| | | {
|
| | | progress = Mathf.Clamp(progressBuf + ((float)index / count) * 0.5f, progressBuf, progressBuf + 0.5f);
|
| | | progress = Mathf.Clamp(progressBuf + ((float)index / count) * 0.3f, progressBuf, progressBuf + 0.3f);
|
| | | }
|
| | |
|
| | | yield return null;
|
| | |
| | | while (!AssetVersionUtility.checkAssetCompleted)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.4f, progressBuf, progressBuf + 0.4f);
|
| | | progress = Mathf.Clamp(progressBuf + timer / duration * 0.3f, progressBuf, progressBuf + 0.3f);
|
| | | yield return null;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | progressBuf = progress;
|
| | | while (!LaunchPostProcess.Instance.completed
|
| | | && LaunchPostProcess.Instance.progress < (Application.platform == RuntimePlatform.WindowsEditor ? 1f : 0.6f))
|
| | | && LaunchPostProcess.Instance.progress < (Application.platform == RuntimePlatform.WindowsEditor ? 1f : 0.8f))
|
| | | {
|
| | | progress = Mathf.Clamp(progressBuf + LaunchPostProcess.Instance.progress * 1.67f, progressBuf, 1f);
|
| | | progress = Mathf.Clamp(progressBuf + LaunchPostProcess.Instance.progress * 1.25f, progressBuf, 1f);
|
| | | yield return null;
|
| | | }
|
| | |
|
| | |
| | | |
| | | void ReadDataCallback(IAsyncResult ar)
|
| | | { |
| | | if (stop)
|
| | | {
|
| | | return;
|
| | | } |
| | | |
| | | try
|
| | | { |
| | | if (inStream != null)
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | fs.Close();
|
| | | fs = null;
|
| | | inStream.Close();
|
| | | inStream = null;
|
| | | fileResponse.Close();
|
| | | fileResponse = null;
|
| | | if (fs != null)
|
| | | {
|
| | | fs.Close();
|
| | | fs = null;
|
| | | }
|
| | |
|
| | | if (inStream != null)
|
| | | {
|
| | | inStream.Close();
|
| | | inStream = null;
|
| | | }
|
| | |
|
| | | if (fileResponse != null)
|
| | | {
|
| | | fileResponse.Close();
|
| | | fileResponse = null;
|
| | | }
|
| | |
|
| | | fileWriteState = FileWriteState.Completed;
|
| | | }
|
| | | }
|
| | |
| | | else
|
| | | {
|
| | | StateDetermination();
|
| | | ContentText.ExcuteHref();
|
| | | var mapModel = ModelCenter.Instance.GetModel<MapModel>();
|
| | | var point = mapModel.GetRecommendHangPoint();
|
| | | var config = Config.Instance.Get<MapEventPointConfig>(point);
|
| | | MapTransferUtility.Instance.MoveToNPC(config.NPCID);
|
| | | }
|
| | | return;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | private void StateDetermination()//状态判定
|
| | | {
|
| | | DropItemManager.StopMissionPickup = true;//主动停止拾取物品
|
| | |
| | | }
|
| | | private void GodBeastBtn()
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FuncNextVersion");//信息提示
|
| | | return;
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<DogzWin>();
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (Quality < 10 && GodBeastBagList[i].IsEquipment != 1 && GodBeastBagList[i].Color > Quality)//过滤掉只剩所选品质装备
|
| | | if (Quality < 10 && (GodBeastBagList[i].IsEquipment != 1 || GodBeastBagList[i].Color > Quality))//过滤掉只剩所选品质装备
|
| | | {
|
| | | int type = i;
|
| | | DeleteIndexList.Add(type);
|
| | |
| | | treasureAchievementDict.Add(config.ID, config.Achievements[i]);
|
| | | break;
|
| | | }
|
| | | else if (config.Category == (int)TreasureCategory.Fairy && config.ID == 301)
|
| | | {
|
| | | eightFurnacesAchievements.Add(config.Achievements[i]);
|
| | | }
|
| | | //else if (config.Category == (int)TreasureCategory.Fairy && config.ID == 301)
|
| | | //{
|
| | | // eightFurnacesAchievements.Add(config.Achievements[i]);
|
| | | //}
|
| | | }
|
| | |
|
| | | if (treasure.state == TreasureState.Locked && config.PreTreasure == 0)
|
| | |
| | | {
|
| | | treasureMapDict.Add(config.ID, config.MapId);
|
| | | }
|
| | |
|
| | | if (config.ID == 301)
|
| | | {
|
| | | List<int> list = null;
|
| | | SuccessConfig.TryGetTreasureExpAchievements(config.ID, out list);
|
| | | if (list != null)
|
| | | {
|
| | | eightFurnacesAchievements.AddRange(list);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | var treasureUpConfigs = Config.Instance.GetAllValues<TreasureUpConfig>();
|