示例#1
0
    public void Update_QuestComplete(int questCode)
    {
        if (deactiveTextPool.Count > 0)
        {
            QuestData questData = QuestDB.Instance.GetQuestData(questCode);

            QuestNoticeText text = deactiveTextPool.Dequeue();
            text.Refresh($"<color=orange>{questData.QuestName} 완료!</color>");
            text.transform.SetAsLastSibling();

            activeTextPool.Enqueue(text);
        }
        else
        {
            activeTextPool.Peek().ReleaseText();
            Update_QuestComplete(questCode);
        }
    }
示例#2
0
    public void Update_Discussion(int questCode, int npcCode)
    {
        if (deactiveTextPool.Count > 0)
        {
            QuestData questData = QuestDB.Instance.GetQuestData(questCode);
            NPCData   npcData   = NpcDB.Instance.GetNPCData(npcCode);

            QuestNoticeText text = deactiveTextPool.Dequeue();
            text.Refresh($"{questData.QuestName} : [<color=green>{npcData.Name}</color>] 대화 완료");
            text.transform.SetAsLastSibling();

            activeTextPool.Enqueue(text);
        }
        else
        {
            activeTextPool.Peek().ReleaseText();
            Update_Discussion(questCode, npcCode);
        }
    }
示例#3
0
    public void Update_KillMonster(int questCode, int monsterCode, int curretKillCount, int goalKillCount)
    {
        if (deactiveTextPool.Count > 0)
        {
            QuestData   questData   = QuestDB.Instance.GetQuestData(questCode);
            MonsterData monsterData = MonsterDB.Instance.GetMonsterData(monsterCode);

            QuestNoticeText text = deactiveTextPool.Dequeue();
            text.Refresh($"{questData.QuestName} : [<color=green>{monsterData.MonsterKorName}</color>] 사냥 ({curretKillCount} / {goalKillCount})");
            text.transform.SetAsLastSibling();

            activeTextPool.Enqueue(text);
        }
        else
        {
            activeTextPool.Peek().ReleaseText();
            Update_KillMonster(questCode, monsterCode, curretKillCount, goalKillCount);
        }
    }
示例#4
0
    public void Update_Building(int questCode, int buildingCode, int curretBuildingGrade, int goalBuildingGrade)
    {
        if (deactiveTextPool.Count > 0)
        {
            QuestData    questData    = QuestDB.Instance.GetQuestData(questCode);
            BuildingData buildingData = BuildingDB.Instance.GetBuildingData(buildingCode);

            QuestNoticeText text = deactiveTextPool.Dequeue();
            text.Refresh($"{questData.QuestName} : [<color=green>{buildingData.BuildingName}</color>] 업그레이드 ({curretBuildingGrade + 1} / {goalBuildingGrade + 1})");
            text.transform.SetAsLastSibling();

            activeTextPool.Enqueue(text);
        }
        else
        {
            activeTextPool.Peek().ReleaseText();
            Update_Building(questCode, buildingCode, curretBuildingGrade, goalBuildingGrade);
        }
    }
示例#5
0
    public void Update_GetItem(int questCode, int itemCode, int curretItemCount, int goalItemCount)
    {
        if (deactiveTextPool.Count > 0)
        {
            QuestData questData = QuestDB.Instance.GetQuestData(questCode);
            ItemData  itemData  = ItemDB.Instance.GetItemData(itemCode);

            QuestNoticeText text = deactiveTextPool.Dequeue();
            text.Refresh($"{questData.QuestName} : [<color=green>{itemData.Name}</color>] 획득 ({curretItemCount} / {goalItemCount})");
            text.transform.SetAsLastSibling();

            activeTextPool.Enqueue(text);
        }
        else
        {
            activeTextPool.Peek().ReleaseText();
            Update_GetItem(questCode, itemCode, curretItemCount, goalItemCount);
        }
    }