Exemple #1
0
 /// <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();
     }
 }
Exemple #2
0
 /// <summary>
 /// method to continue the story ; for button ; public
 /// </summary>
 public void Continue()
 {
     CutSceneManager.StoryIndex++;
     StoryManager.LoadStage();
 }
Exemple #3
0
 /// <summary>
 /// method to retry the current part of the story ; for button ; public
 /// </summary>
 public void Retry()
 {
     StoryManager.LoadStage();
 }
Exemple #4
0
 /// <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();
 }