Exemple #1
0
    private void TryToAssignQuest()
    {
        if (m_DialogueNPC.CanAssignQuest())
        {
            EventManager.Invoke(EventName.QuestStart);
            QuestManager.AddNPC(m_DialogueNPC);
        }

        // Quest quest = m_DialogueNPC.GetMostRecentQuest();

        // // Got most recent quest from NPC
        // if (null != quest)
        // {
        //     Debug.Log(">> Assigning quest to player from " + m_DialogueNPC.GetName());

        //     quest.SetState(QuestState.Started);

        //     // QuestManager.AddQuest(quest);

        //     // QuestManager.SetCurrentQuest(quest);
        // }
    }