/// <summary>
        /// Stops the tween.
        /// </summary>
        /// <param name="stopBehavior">The behavior to use to handle the stop.</param>
        public void Stop(StopBehavior stopBehavior)
        {
            state = TweenState.Stopped;

            if (stopBehavior == StopBehavior.ForceComplete)
            {
                currentTime = duration;
                UpdateValue();
            }
        }
Exemple #2
0
        /// <summary>
        /// Stops the tween.
        /// </summary>
        /// <param name="stopBehavior">The behavior to use to handle the stop.</param>
        public void Stop(StopBehavior stopBehavior)
        {
            this._state = TweenState.Stopped;

            if (stopBehavior == StopBehavior.ForceComplete)
            {
                this._currentTime = this._duration;
                this.UpdateValue();
            }
        }
 public static void Stop(StopBehavior stopBehavior)
 {
     if (stopBehavior == StopBehavior.FadeOut)
     {
         BeginSplashScreenFade();
     }
     else
     {
         CancelSplashScreen();
     }
 }
Exemple #4
0
        /// <summary>
        /// Stops the tween.
        /// </summary>
        /// <param name="stopBehavior">The behavior to use to handle the stop.</param>
        public void Stop(StopBehavior stopBehavior)
        {
            State = TweenState.Stopped;

            if (stopBehavior == StopBehavior.ForceComplete)
            {
                CurrentTime = Duration;
                UpdateValue();
            }

            Completed?.Invoke();
        }