Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private void PlotCallBack()
 {
     if (m_TaskStateNode != null)
     {
         m_TaskStateNode.gameObject.SetActive(true);
     }
     if (m_DialogNode != null)
     {
         Destroy(m_DialogNode.gameObject);
         m_DialogNode = null;
     }
     PlayIdle();
     if (m_AnimTime < 9999)
     {
         SetAnimTime(0);
     }
 }
Exemplo n.º 3
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);
        }