| | |
| | | }
|
| | | }
|
| | | SetLength();
|
| | |
|
| | | for (int i = 0; i < _list.Count; i++)
|
| | | {
|
| | | if (i >= Content.childCount)
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | //var inDungeon = IsDungeon();
|
| | | //TaskScheduling();
|
| | | //if (WindowCenter.Instance.IsOpen<MainInterfaceWin>() && !inDungeon)
|
| | | //{
|
| | | // if (MissionState != 0 && MissionID != 1 && _list.Contains(MissionID))
|
| | | // {
|
| | | // Selected();//选中逻辑
|
| | | // TaskAddAndDelete(MissionID);
|
| | | // if (NewBieCenter.Instance.inGuiding || ModelCenter.Instance.GetModel<TreasureModel>().newGotShowing)
|
| | | // {
|
| | | // return;
|
| | | // }
|
| | | // TaskJump(MissionID);
|
| | | // return;
|
| | | // }
|
| | |
|
| | | //}
|
| | | if (Parent.gameObject.activeInHierarchy)
|
| | | {
|
| | | StartCoroutine(WaitAddTask(MissionID, MissionState));
|
| | |
| | | return;
|
| | | }
|
| | | TaskScheduling();
|
| | | bool _isBool = false;
|
| | | for (int i = 0; i < _list.Count; i++)
|
| | | {
|
| | | if (taskmodel.SideQuestState(_list[i]) == 2)
|
| | | {
|
| | | _isBool = true;
|
| | | }
|
| | | }
|
| | | if (_isBool)
|
| | | {
|
| | | TheTaskToGenerate();
|
| | | return;
|
| | | }
|
| | | for (int i = 0; i < _list.Count; i++)
|
| | | {
|
| | | if (i <= Content.childCount - 1)
|