Esempio n. 1
0
 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();
         }
     }
 }
Esempio n. 2
0
 public void RemoveItem(ItemObject item)
 {
     inventory.RemoveItem(item);
     UpdateItemsSlot();
 }