Example #1
0
    public void UpdateQuest(GameObject obj)
    {
        if (curQuestA == curQuestB)
        {
            sameQuest = true;
        }
        else
        {
            sameQuest = false;
        }

        if (curQuestA.isInProgress)
        {
            curQuestA.CheckTarget(obj);
        }

        if (sameQuest)
        {
            return;
        }

        if (curQuestB.isInProgress)
        {
            curQuestB.CheckTarget(obj);
        }
    }