// Finish dialogue & load next UI public void finishDialogue() { dialogueUI.finishDialogueUI(); switch (currType) { case DialogueType.Conversation: { GameObject.Find("GameManager").GetComponent <GameManager>().checkIfHated(); break; } case DialogueType.Checkpoint: { GameObject.Find("InteractButtonManager").GetComponent <InteractButtonManager>().allFlyIn(); GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().showTopBar(); break; } case DialogueType.Greeting: { GameObject.Find("InteractButtonManager").GetComponent <InteractButtonManager>().allFlyIn(); GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().showTopBar(); break; } case DialogueType.Post: { // Load post minigame scene GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().loadPost(); break; } case DialogueType.AfterPost: { GameObject.Find("GameManager").GetComponent <GameManager>().showFeedback(); break; } case DialogueType.FailedDate: { GameObject.Find("InteractButtonManager").GetComponent <InteractButtonManager>().allFlyIn(); GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().showTopBar(); GameObject.Find("GameManager").GetComponent <GameManager>().addAffection(-1000); break; } case DialogueType.Date: { // Load date minigame scene GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().loadMatch3Game(); break; } case DialogueType.FinalCheckpoint: { GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().loadWinScreen(); // GameObject.Find("InteractUIManager").GetComponent<InteractUIManager>().showTopBar(); break; } case DialogueType.Insufficient: { GameObject.Find("InteractButtonManager").GetComponent <InteractButtonManager>().allFlyIn(); GameObject.Find("InteractUIManager").GetComponent <InteractUIManager>().showTopBar(); break; } case DialogueType.Hated: { break; } } }