public void Show(TaskState taskState, ETaskShowType showType, TaskGuidePanel myParent) { gameObject.SetActive(true); curTaskState = taskState; this.eTaskShowType = showType; this.myParent = myParent; Init(); ShowTask(); }
private void InitTaskGuidePanel() { m_taskGuidePanel = (Instantiate(taskGuidePanel) as GameObject).GetComponent <UI.MainUI.TaskGuidePanel>(); m_taskGuidePanel.transform.parent = this.transform; m_taskGuidePanel.transform.localPosition = new Vector3(0, 0, 150); m_taskGuidePanel.transform.localScale = Vector3.one; m_taskGuidePanel.GetComponent <UIAnchor>().uiCamera = UICamera; m_taskGuidePanel.ShowPanel(); /*m_taskGuidePanel.ClickTaskStateAct = (taskState) => * { * TaskModel.Instance.ManualTriggerTask(taskState); * m_taskGuidePanel.InitTaskPanel(TaskModel.Instance.FindNextQuickGuideTask()); * };*/ RefreshTaskQuickInfo(null); }