Ejemplo n.º 1
0
 /// <summary>
 /// Handles the will exit scene event
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">Event.</param>
 virtual protected void HandleWillExitScene(object sender, SceneEventArgs e)
 {
     if (saveOnSceneExit)
     {
         Save(this);
     }
     if (resetOnSceneExit)
     {
         Reset(this);
     }
 }
 /// <summary>
 /// Handles the load or respawn event by resetting timer.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 protected void HandleLoadOrRespawn(object sender, SceneEventArgs e)
 {
     ResetTimer();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the character exiting the scene.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">Event data.</param>
 virtual protected void HandleExitScene(object sender, SceneEventArgs e)
 {
     Save();
 }