Example #1
0
        /// <summary>
        /// Called just before the update pass of a scene object starts.
        /// </summary>
        /// <param name="targetScene">The scene for which to prepare this state object</param>
        /// <param name="updateState">The update state.</param>
        internal void OnStartSceneUpdate(Scene targetScene, UpdateState updateState)
        {
            targetScene.EnsureNotNull(nameof(targetScene));
            updateState.EnsureNotNull(nameof(updateState));

            _isPaused             = targetScene.IsPaused;
            this.IgnorePauseState = updateState.IgnorePauseState;

            this.World.ResetStackToIdentity();

            _updateState    = updateState;
            this.SceneLayer = null;
        }