Esempio n. 1
0
    public CQuestMgr()
    {
        Inst        = this;
        m_QuestData = new CQuestData();
        m_Script    = new CQuestScript();

        m_currentQuests = new Dictionary <uint, CQuest> ();
        m_doneQuests    = new Dictionary <uint, int> ();
    }
Esempio n. 2
0
 /// ---------------------------------------------------------------------------------
 /// <summary>
 /// 退出任务对话框
 /// </summary>
 /// ---------------------------------------------------------------------------------
 void OnTriggerExit(Collider other)
 {
     if (CQuestMgr.Inst != null)
     {
         CQuestScript pQS = CQuestMgr.Inst.GetQuestScript();
         if (pQS != null)
         {
             pQS.OnExitQuestTalk( );
         }
     }
 }
Esempio n. 3
0
    /// ---------------------------------------------------------------------------------
    /// <summary>
    /// 开始任务对话框
    /// </summary>
    /// ---------------------------------------------------------------------------------

    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            if (CQuestMgr.Inst != null)
            {
                CQuestScript pQS = CQuestMgr.Inst.GetQuestScript();
                if (pQS != null)
                {
                    pQS.OnTalk((uint)npctypeid);
                }
            }
        }
    }
Esempio n. 4
0
    void onClickTalkEvent(UnityEngine.GameObject item)
    {
        CQuestScript pQS = CQuestMgr.Inst.GetQuestScript();

        if (pQS == null)
        {
            return;
        }

        ClearTalkFrame();

        if (m_eOpType == EOptionType.EOT_ScenarioTalk)
        {
            pQS.OnScenarioTalk(m_questid, m_step);
        }
    }