Exemple #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> ();
    }
Exemple #2
0
 /// ---------------------------------------------------------------------------------
 /// <summary>
 /// 退出任务对话框
 /// </summary>
 /// ---------------------------------------------------------------------------------
 void OnTriggerExit(Collider other)
 {
     if (CQuestMgr.Inst != null)
     {
         CQuestScript pQS = CQuestMgr.Inst.GetQuestScript();
         if (pQS != null)
         {
             pQS.OnExitQuestTalk( );
         }
     }
 }
Exemple #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);
                }
            }
        }
    }
Exemple #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);
        }
    }