void AssignQuest() { questExclemenation.SetActive(false); dialogueManager.AddToDialogue(givingQuestDialogue); isQuestAssigned = true; quest = (Quest)currentQuests.AddComponent(System.Type.GetType(questTypeName)); quest.questUI = questUI; questUI.SetQuestUIVisibility(true); questUI.SetCurrentQuest(quest); }