コード例 #1
0
 /// <summary>
 /// Unlocks a previously locked scene and transitions out of the currently displayed screen.
 /// </summary>
 /// <param name="screenToUnlock"></param>
 /// <param name="oldScreen"></param>
 public void Outro_Unlock(Scene screenToUnlock, Scene oldScreen)
 {
     screenToUnlock.Transition(Scene.SceneState.Locked, oldScreen);
     oldScreen.Transition(Scene.SceneState.Inactive, screenToUnlock);
 }
コード例 #2
0
 /// <summary>
 /// Locks a scene while another appears.
 /// </summary>
 /// <param name="screenToLock">Name of the screen to lock. (Plays Lock)</param>
 /// <param name="newScreen">Name of the screen to appear. (Plays Intro)</param>
 public void Intro_Lock(Scene screenToLock, Scene newScreen)
 {
     screenToLock.Transition(Scene.SceneState.Locked, newScreen);
     newScreen.Transition(Scene.SceneState.Active, screenToLock);
 }
コード例 #3
0
 /// <summary>
 /// Exits from Screen 1 to Screen 2
 /// </summary>
 /// <param name="screen1">Name of Screen 1 (Plays Outro)</param>
 /// <param name="screen2">Name of Screen 2 (Plays Intro)</param>
 public void Transition(Scene screen1, Scene screen2)
 {
     screen1.Transition(Scene.SceneState.Inactive, screen2);
     screen2.Transition(Scene.SceneState.Active, screen1);
 }
コード例 #4
0
 /// <summary>
 /// Exits from Screen 1 to Screen 2
 /// </summary>
 /// <param name="screen1">Name of Screen 1 (Plays Outro)</param>
 /// <param name="screen2">Name of Screen 2 (Plays Intro)</param>
 public void Transition(Scene screen1, Scene screen2)
 {
     screen1.Transition(Scene.SceneState.Inactive, screen2);
     screen2.Transition(Scene.SceneState.Active, screen1);
 }
コード例 #5
0
 /// <summary>
 /// Unlocks a previously locked scene and transitions out of the currently displayed screen.
 /// </summary>
 /// <param name="screenToUnlock"></param>
 /// <param name="oldScreen"></param>
 public void Outro_Unlock(Scene screenToUnlock, Scene oldScreen)
 {
     screenToUnlock.Transition(Scene.SceneState.Locked, oldScreen);
     oldScreen.Transition(Scene.SceneState.Inactive, screenToUnlock);
 }
コード例 #6
0
 /// <summary>
 /// Locks a scene while another appears.
 /// </summary>
 /// <param name="screenToLock">Name of the screen to lock. (Plays Lock)</param>
 /// <param name="newScreen">Name of the screen to appear. (Plays Intro)</param>
 public void Intro_Lock(Scene screenToLock, Scene newScreen)
 {
     screenToLock.Transition(Scene.SceneState.Locked, newScreen);
     newScreen.Transition(Scene.SceneState.Active, screenToLock);
 }