Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }