/// <summary>
 /// Callback for when a transition is completed
 /// </summary>
 /// <param name="destScene">The scene that was transitioned to</param>
 public void OnTransitionCompleted(SceneTransitionEventArgs e)
 {
     foreach (SceneVariable variable in sceneVariables)
     {
         if (variable.ResetOnTransition)
         {
             variable.Reset();
         }
     }
 }
        private void Transitioner_OnSceneChanged(SceneTransitionEventArgs e)
        {
            if (e.DestinationScene == null)
            {
                Debug.LogError("Transitioned-to scene not provided, cannot set Active Scene");
                return;
            }

            SceneModel existingScene = GetSceneById(e.DestinationScene.SceneId);

            if (existingScene == null)
            {
                Debug.LogError("Transitioned-to scene not a part of the scene manager, cannot set Active Scene");
                return;
            }

            ActiveScene = existingScene;
            Evaluate();
        }