public void ShowOldWomanTaskUi(int plotId) { if (m_DialogNode != null) { Destroy(m_DialogNode.gameObject); m_DialogNode = null; } if (m_TaskStateNode != null) { m_TaskStateNode.gameObject.SetActive(false); } GameObject go = Global.gApp.gResMgr.InstantiateObj(Wndid.DialogUI); m_DialogNode = go.GetComponent <DialogNode>(); m_DialogNode.Init(m_TaskItem, GetTaskUINode(), PlotCallBack); m_DialogNode.SetPlotId(plotId); }
private void ShowPlotUi() { if (m_DialogNode != null) { Destroy(m_DialogNode.gameObject); m_DialogNode = null; } if (m_TaskStateNode != null) { m_TaskStateNode.gameObject.SetActive(false); } GameObject go = Global.gApp.gResMgr.InstantiateObj(Wndid.DialogUI); m_DialogNode = go.GetComponent <DialogNode>(); m_DialogNode.Init(m_TaskItem, GetTaskUINode(), PlotCallBack); PlayIdle(); SetAnimTime(99999); }