| | |
| | | [SerializeField] Text m_ChallengeCondition;
|
| | | [SerializeField] Slider m_TaskSlider;
|
| | | [SerializeField] Text m_TaskProgress;
|
| | | [SerializeField] UIEffect m_EffectInduction;
|
| | |
|
| | | [SerializeField] Transform m_ContainerSkillDetial;
|
| | | [SerializeField] Image m_SkillDetailIcon;
|
| | |
| | | [SerializeField] ScrollerController m_TaskController;
|
| | |
|
| | | bool animationStep = false;
|
| | |
|
| | | float displayTime = 0f;
|
| | |
|
| | | List<int> animationClues = new List<int>();
|
| | |
|
| | |
| | |
|
| | | animationClues.Clear();
|
| | |
|
| | | displayTime = 0f;
|
| | |
|
| | | m_TaskController.Refresh();
|
| | | Dictionary<int, List<int>> clues;
|
| | | if (model.TryGetTreasureClues(model.selectedTreasure, out clues))
|
| | |
| | | }
|
| | | m_TaskController.Restart();
|
| | | animationClues.Clear();
|
| | |
|
| | | if (taskAnimation)
|
| | | {
|
| | | Clock.AlarmAfter(Mathf.CeilToInt(displayTime + 0.6f), () =>
|
| | | {
|
| | | m_TaskController.mScrollRect.enabled = true;
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TaskController.mScrollRect.enabled = true;
|
| | | }
|
| | | }
|
| | |
|
| | | void DisplayAnimation()
|
| | |
| | | {
|
| | | var count = m_TaskController.GetNumberOfCells(m_TaskController.m_Scorller);
|
| | | m_TaskController.JumpIndex(count - 1);
|
| | | m_EffectInduction.Play();
|
| | | m_TaskController.mScrollRect.enabled = false;
|
| | | StartCoroutine(Co_DelayShowTask());
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_DelayShowTask()
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS1000;
|
| | | yield return WaitingForSecondConst.WaitMS3000;
|
| | | DisplayTasks(true);
|
| | | }
|
| | |
|
| | |
| | | if (type == ScrollerDataType.Header)
|
| | | {
|
| | | var taskCell = cell as HumanTreasureTaskCell;
|
| | | taskCell.transform.SetParent(m_TaskController.m_Scorller.LayoutGroup.transform);
|
| | | var animation = false;
|
| | | if (animationClues.Contains(cell.index))
|
| | | {
|
| | | animation = true;
|
| | | displayTime += 0.6f;
|
| | | }
|
| | | taskCell.Display(cell.index, animation);
|
| | | taskCell.Display(cell.index, animation, displayTime);
|
| | | }
|
| | | }
|
| | |
|