Пример #1
0
    public void AddQuest(QuestInfo addquest)                    //퀘스트 수락 able -> accept
    {
        if (questAcessList.Count <= 3)
        {
            questAcessList.Add(addquest);
            playerQuestList[addquest.quest_code].quest_state = QuestState.accept;

            npcTest.NpcQuestListSetting();


            // 라우터 ( able ---> accept )
            networkRouter.PostRouter(PostType.PLAYER_QUEST_STATE_UPDATE, playerQuestList[addquest.quest_code]);
        }
        else
        {
            //NPC UI에 퀘스트가 다 찼다는 신호보냄.
        }
        return;
    }
Пример #2
0
    public void Removequestlist(string name)    //questCancel & questSucess
    {
        int i = 0;

        foreach (QuestClear str in questlist)
        {
            if (questlist[i].questName.text == name)
            {
                Destroy(questlist[i].questSlot.gameObject);


                QuestBoardSetting();
                npcQuestUIScript.QuestClear();
                questlist.Remove(str);

                npcQuestUIScript.NpcQuestListSetting();

                return;
            }
            i++;
        }
    }