Ejemplo n.º 1
0
        public void Stop(TweenCompletion completion)
        {
            if (completion == TweenCompletion.Complete)
            {
                Setter(To);
                ElapsedTicks = DurationInTicks;
            }
            else if (completion == TweenCompletion.Rewind)
            {
                Setter(From);
                ElapsedTicks = 0;
            }

            _tcs.TrySetResult(null);
            _gameEvents.OnRepeatedlyExecute.Unsubscribe(onRepeatedlyExecute);
        }
Ejemplo n.º 2
0
		public void Stop(TweenCompletion completion)
		{
			if (completion == TweenCompletion.Complete)
			{
				Setter(To);
				ElapsedTicks = DurationInTicks;
			}
			else if (completion == TweenCompletion.Rewind)
			{
				Setter(From);
				ElapsedTicks = 0;
			}

			_tcs.TrySetResult(null);
			_gameEvents.OnRepeatedlyExecute.Unsubscribe(onRepeatedlyExecute);
		}