void EndDialogue() { continueButton.SetActive(false); if (tutController != null) { if (batch == 1) { batch = 2; tutController.FinishedFirstDialogue(); } else if (batch == 2) { batch = 3; tutController.FinishedSecondDialogue(); } else if (batch == 3) { batch = 4; tutController.FinishedThirdDialogue(); } else if (batch == 4) { batch = 5; tutController.FinishedFourthDialogue(); } } if (endController != null) { Debug.Log("Here"); endController.FinishedDialogue(); } }