| | |
| | | }
|
| | |
|
| | | }
|
| | | //for (int i = 0; i < Content.childCount; i++)
|
| | | //{
|
| | | // if (i < _list.Count)
|
| | | // {
|
| | | // GameObject obj = Content.GetChild(i).gameObject;
|
| | | // TaskType childObjTaskType = Content.GetChild(i).gameObject.GetComponent<TaskType>();
|
| | | // if (childObjTaskType.TaskID == TaskID)
|
| | | // {
|
| | | // return;
|
| | | // }
|
| | | // if (childObjTaskType.TaskID == 0)
|
| | | // {
|
| | | // obj.SetActive(true);
|
| | | // childObjTaskType.TaskID = TaskID;
|
| | | // childObjTaskType.IsGameObjectName(TaskID);
|
| | | // childObjTaskType.IsMysteriousTask();
|
| | | // obj.GetComponent<FlyingShoesTask>().FlyingShoes_Task(TaskID);
|
| | | // }
|
| | | // }
|
| | |
|
| | | //}
|
| | | ChangeSort();//关于任务变更排序
|
| | | SetLength();
|
| | | }
|
| | |
| | | obj.transform.SetSiblingIndex(Inedx);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | //for (int i = 0; i < Content.childCount; i++)
|
| | | //{
|
| | | // GameObject obj = Content.GetChild(i).gameObject;
|
| | | // TaskType taskType = obj.GetComponent<TaskType>();
|
| | | // if (taskType.TaskID != 0 && _list.Contains(taskType.TaskID))
|
| | | // {
|
| | | // int Inedx = _list.IndexOf(taskType.TaskID);
|
| | | // obj.transform.SetSiblingIndex(Inedx);
|
| | | // }
|
| | | //}
|
| | | }
|
| | |
|
| | |
|
| | |
| | | _position = (_list.Count - type) * m_SizeHeight + (_list.Count - type - 1) * 2;
|
| | | }
|
| | | _position -= 196;
|
| | | if (_list.Count == 3 && type == 2)
|
| | | {
|
| | | m_ScrollRect.verticalNormalizedPosition = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ScrollRect.verticalNormalizedPosition = Mathf.Clamp01(_position / ((Content as RectTransform).sizeDelta.y - 196));
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
|