public CQuestMgr() { Inst = this; m_QuestData = new CQuestData(); m_Script = new CQuestScript(); m_currentQuests = new Dictionary <uint, CQuest> (); m_doneQuests = new Dictionary <uint, int> (); }
/// --------------------------------------------------------------------------------- /// <summary> /// 退出任务对话框 /// </summary> /// --------------------------------------------------------------------------------- void OnTriggerExit(Collider other) { if (CQuestMgr.Inst != null) { CQuestScript pQS = CQuestMgr.Inst.GetQuestScript(); if (pQS != null) { pQS.OnExitQuestTalk( ); } } }
/// --------------------------------------------------------------------------------- /// <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); } } } }
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); } }