public void NextEvent(int pointer) { pointer -= 1; if (pointer == 0 && choice.currentDate == 0) { Debug.Log("Game started"); // Text fades in here // Have date start already sitting down dateCharacterController.SetTrigger("sitDownTrigger"); dateCharacterController.ChangeFacialExpression("Angry"); } else if (pointer == 4 && choice.currentDate == 0) { sceneLoader.FadeFromBlack(); choice.GrabText(); } else if (pointer == 45 && choice.currentDate == 0) { dateCharacterController.ChangeFacialExpression("Angry"); dateCharacterController.MoveCharacter( dateCharacterController.transform.localPosition, dateCharacterController.walkOutPos, 1f ); choice.GrabText(); } else if ((pointer == 46 || pointer == 47 || pointer == 48) && choice.currentDate == 0) { Debug.Log("Game over"); //gameObject.SetActive(false); // Deactivate text progression // Play bus crash sound (a few seconds after?) // Activate text progression after sound finishes playing //testing purpose put scene end here //overview.active = false; // bus-kun put some sort of delay here //choice.GrabText(); // Have date get angry and walk out dateCharacterController.ChangeFacialExpression("Angry"); dateCharacterController.MoveCharacter( dateCharacterController.transform.localPosition, dateCharacterController.walkOutPos, 1f ); choice.GrabText(); } // End of date 1 else if (pointer == 50 || pointer == 49 && choice.currentDate == 0) { Debug.Log("______________________________________________________"); //sets data DateSceneManager(); // activate bus scene StartCoroutine(GoToBusScene()); choice.GrabText(); } // End of date 1 //DATE B DAILOG STUFF else if ((pointer == 0) && choice.currentDate == 1) { sceneLoader.FadeFromBlack(); choice.GrabText(); } else if ((pointer == 43) && choice.currentDate == 1) { // Have date get angry and walk out dateCharacterController.ChangeFacialExpression("Angry"); dateCharacterController.MoveCharacter( dateCharacterController.startingPos, dateCharacterController.walkOutPos, 1f ); DateSceneManager(); // activate bus scene StartCoroutine(GoToBusScene()); choice.GrabText(); } // End of date 2 else if ((pointer == 48) && choice.currentDate == 1) { //sets data // sceneLoader.LoadSceneByName("BusScene"); choice.GrabText(); } //DATE C DAILOG STUFF else if (pointer == 0 && choice.currentDate == 2) { Debug.Log("Date Three Started"); // Text fades in here sceneLoader.FadeFromBlack(); // Have date start already sitting down dateCharacterController.SetTrigger("sitDownTrigger"); dateCharacterController.ChangeFacialExpression("Angry"); } else if (pointer == 44 && choice.currentDate == 2) { Debug.Log("End of date 3 FadeFromBlack test"); sceneLoader.LoadSceneByName("FinalCreditsScene"); } else { choice.GrabText(); } }