private void DialogueController() { if ((inWrongDialogue || correctDialoguePhase) && player.GetInteractTrigger()) { if (!dialogue.GetDialogueEnded()) { if (dialogue.GetEndLine()) dialogue.Play(); } else if (inWrongDialogue) { tent.tag = "Untagged"; goals.SetMyraGoal("end"); CloseDialogue(); } else if (correctDialoguePhase) { myra.SetActive(false); inventory.AddMemory(flowerMemory, popUpMessage); inventory.RemoveItem(items[1]); tent.tag = "Untagged"; goals.SetMyraGoal("end"); CloseDialogue(); } } }
public void RemoveItem(ItemObject item) { inventory.RemoveItem(item); UpdateItemsSlot(); }