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(); } } }
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"); } } }
// Update is called once per frame void Update() { if (player.GetInteractTrigger()) { player.EnableControls(); dialogue.Play(); if (dialogue.GetDialogueEnded() && dialogue.GetEndLine()) { gameObject.SetActive(false); } } }
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); } } }
private void Update() { if (YmirExplanation.activeInHierarchy) { if (player.GetInteractTrigger()) { if (!YmirDialogue.GetDialogueEnded()) { if (YmirDialogue.GetEndLine()) { YmirDialogue.Play(); } } else { YmirExplanation.SetActive(false); TradeMemories.SetActive(true); } } } }
void Update() { Debug.Log(dialogue.GetEndLine()); DialoguePhases(); }