Merge branch 'master' into Skill_Polymorph_BeatBackPlayer
| | |
| | | {
|
| | | if (isPlaying && _task.state == TaskState.ReadFileFailure)
|
| | | {
|
| | | Thread.Sleep(30);
|
| | | ReadFile(_task, OnEndReadFile<T>);
|
| | | }
|
| | | else
|
| | |
| | | if (isPlaying && _task.state == TaskState.ParseFailure)
|
| | | {
|
| | | Debug.LogFormat("配置表解析失败:{0}", _task.taskName);
|
| | | Thread.Sleep(30);
|
| | | ReadFile(_task, OnEndReadFile<T>);
|
| | | }
|
| | | }
|
| | |
| | | currentGuide = 0;
|
| | | WindowCenter.Instance.CloseImmediately<NewBieWin>();
|
| | |
|
| | | completeGuidesBuf.Add(guideRecord);
|
| | | if (!completeGuidesBuf.Contains(guideRecord))
|
| | | {
|
| | | completeGuidesBuf.Add(guideRecord);
|
| | | }
|
| | |
|
| | | var send = new CA222_tagCMSetGuideOK();
|
| | | send.GuideIndex = (byte)_id;
|
| | |
| | | bool rejectManual = false;
|
| | |
|
| | | TeamModel model { get { return ModelCenter.Instance.GetModel<TeamModel>(); } }
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding)
|
| | | {
|
| | | NewBieCenter.Instance.FinishNewBieGuide(NewBieCenter.Instance.currentGuide);
|
| | | }
|
| | |
|
| | | rejectManual = false;
|
| | | if (!model.myTeam.iamCaptainer)
|
| | | {
|
| | |
| | | IEnumerator Co_DelayCloseWin()
|
| | | {
|
| | | yield return null;
|
| | | WindowCenter.Instance.Open<TeamPrepareWin>();
|
| | | WindowCenter.Instance.Close<TeamPrepareWin>();
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | achievementBehaviour.linerMove.from = achievementBehaviour.rectTransform.anchoredPosition;
|
| | | var toY = achievementBehaviour.rectTransform.anchoredPosition.y + cellSize.y + spacing.y;
|
| | | achievementBehaviour.linerMove.to = achievementBehaviour.rectTransform.anchoredPosition.SetY(toY);
|
| | |
|
| | | achievementBehaviour.linerMove.duration = relocationTime;
|
| | | achievementBehaviour.linerMove.Begin();
|
| | | if (achievementBehaviour.linerMove.gameObject.activeInHierarchy)
|
| | | {
|
| | | achievementBehaviour.linerMove.Begin();
|
| | | }
|
| | | else
|
| | | {
|
| | | achievementBehaviour.linerMove.Stop();
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | public class MultipleRealmPointModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public Redpoint multipleRed = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20908);
|
| | | public string LocalRecord_Key = "MultipleRealmRecord";
|
| | | public string LocalRecord_Key;
|
| | | bool isNewDay = false;
|
| | |
|
| | | public event Action<int> onStateUpate;
|
| | |
| | | public override void Init()
|
| | | {
|
| | | OpenServerActivityCenter.Instance.Register(8, this);
|
| | | |
| | | //StageManager.Instance.onStageLoadFinish += CheckReconnect;
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | LocalRecord_Key = StringUtility.Contact(LocalRecord_Key, PlayerDatas.Instance.baseData.PlayerID);
|
| | | CheckShowRed();
|
| | | LocalRecord_Key = StringUtility.Contact("MultipleRealmRecord", PlayerDatas.Instance.baseData.PlayerID);
|
| | | OperationTimeHepler.Instance.operationStartEvent -= RefreshOperationState;
|
| | | OperationTimeHepler.Instance.operationStartEvent += RefreshOperationState;
|
| | | OperationTimeHepler.Instance.operationEndEvent -= RefreshOperationState;
|
| | | OperationTimeHepler.Instance.operationEndEvent += RefreshOperationState;
|
| | | OperationTimeHepler.Instance.operationServerCloseEvent -= RefreshOperationClose;
|
| | | OperationTimeHepler.Instance.operationServerCloseEvent += RefreshOperationClose;
|
| | | CheckShowRed();
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | |
| | | StageManager.Instance.onStageLoadFinish -= CheckReconnect;
|
| | | }
|
| | |
|
| | | public bool IsOpen
|
| | |
| | | return multipleRed.state == RedPointState.Simple;
|
| | | }
|
| | | }
|
| | |
|
| | | private void CheckReconnect()
|
| | | {
|
| | | if (!(StageManager.Instance.CurrentStage is DungeonStage))
|
| | | {
|
| | | CheckShowRed();
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | private void RefreshOperationClose(Operation type)
|
| | | {
|
| | |
| | |
|
| | | if(!isNewDay)
|
| | | {
|
| | | |
| | | if (!PlayerPrefs.HasKey(LocalRecord_Key))
|
| | | {
|
| | | DebugEx.Log("设置记录时间:" + TimeUtility.ServerNow.Day);
|
| | | LocalSave.SetInt(LocalRecord_Key, TimeUtility.ServerNow.Day);
|
| | | isNewDay = true;
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.Log("得到记录时间:" + LocalSave.GetInt(LocalRecord_Key));
|
| | | if (TimeUtility.ServerNow.Day != LocalSave.GetInt(LocalRecord_Key))
|
| | | {
|
| | | isNewDay = true;
|
| | | DebugEx.Log("设置记录时间:" + TimeUtility.ServerNow.Day);
|
| | | LocalSave.SetInt(LocalRecord_Key, TimeUtility.ServerNow.Day);
|
| | | }
|
| | | }
|
| | |
| | | public event Action<Window> jumpWindowCloseEvent;
|
| | | List<string> closeAllIgnoreWindows = new List<string>() {
|
| | | "MessageWin", "NewBieWin", "NewItemGetWin", "AttributePromoteShowWin" ,"DungeonBeginCoolDownWin","DungeonFightWin","StatusTipWin"
|
| | | ,"ScrollTipWin","MarqueeWin","ExperienceOpenWin","TrumpetWin","BattlePrepareCoolDownWin","DungeonGradeWin","BattleHintWin"
|
| | | ,"ScrollTipWin","MarqueeWin","ExperienceOpenWin","TrumpetWin","BattlePrepareCoolDownWin","DungeonGradeWin","BattleHintWin",
|
| | | "TreasureDungeonMissionHintWin",
|
| | | };
|
| | |
|
| | | UIRoot m_UIRoot;
|
| | |
| | | currentResolution = ConvertResolution(new Vector2(1280, 720));
|
| | | break;
|
| | | case GameQuality.Medium:
|
| | | currentResolution = ConvertResolution(new Vector2(1280, 720));
|
| | | currentResolution = ConvertResolution(new Vector2(1920, 1080));
|
| | | break;
|
| | | case GameQuality.High:
|
| | | currentResolution = ConvertResolution(new Vector2(1920, 1080));
|