/// <summary> /// method to allow user to continue to next scene on button press keycode e ; private /// </summary> private void ContinueStoryOnButton() { if (Input.GetKeyDown(KeyCode.E)) { CutSceneManager.StoryIndex++; StoryManager.LoadStage(); } }
/// <summary> /// method to continue the story ; for button ; public /// </summary> public void Continue() { CutSceneManager.StoryIndex++; StoryManager.LoadStage(); }
/// <summary> /// method to retry the current part of the story ; for button ; public /// </summary> public void Retry() { StoryManager.LoadStage(); }
/// <summary> /// method to load a story stage depending on this storyIndex ; for button ; public /// </summary> public void StartStory() { CutSceneManager.StoryIndex = storyIndex; StoryManager.isStoryMode = true; StoryManager.LoadStage(); }