Beispiel #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();
         }
     }
 }
Beispiel #2
0
 private void YmirDialogue()
 {
     if (phase.Equals("ymir"))
     {
         if (ymirExplanation.activeInHierarchy)
         {
             if (player.GetInteractTrigger())
             {
                 if (!ymirDialogue.GetDialogueEnded())
                 {
                     if (ymirDialogue.GetEndLine())
                     {
                         ymirDialogue.Play();
                     }
                 }
                 else
                 {
                     canvasBlinkEyes.SetActive(false);
                     phase = "finish";
                     ymirExplanation.SetActive(false);
                     tutorial.SetActive(true);
                     gameObject.SetActive(false);
                 }
             }
         }
         else
         {
             ymirExplanation.SetActive(true);
             ymirDialogue.Play();
             player.EnableKey("interact");
         }
     }
 }
Beispiel #3
0
    // Update is called once per frame
    void Update()
    {
        if (player.GetInteractTrigger())
        {
            player.EnableControls();
            dialogue.Play();

            if (dialogue.GetDialogueEnded() && dialogue.GetEndLine())
            {
                gameObject.SetActive(false);
            }
        }
    }
Beispiel #4
0
 private void Update()
 {
     if (dialogue.activeInHierarchy)
     {
         if (!dialogueBox.GetDialogueEnded())
         {
             if (player.GetInteractTrigger() && dialogueBox.GetEndLine())
             {
                 dialogueBox.Play();
             }
         }
         else
         {
             dialogue.gameObject.SetActive(false);
             cam.SetActive(false);
             Invoke(nameof(EnableControl), 0.5f);
         }
     }
 }
Beispiel #5
0
 private void Update()
 {
     if (YmirExplanation.activeInHierarchy)
     {
         if (player.GetInteractTrigger())
         {
             if (!YmirDialogue.GetDialogueEnded())
             {
                 if (YmirDialogue.GetEndLine())
                 {
                     YmirDialogue.Play();
                 }
             }
             else
             {
                 YmirExplanation.SetActive(false);
                 TradeMemories.SetActive(true);
             }
         }
     }
 }
Beispiel #6
0
 void Update()
 {
     Debug.Log(dialogue.GetEndLine());
     DialoguePhases();
 }