예제 #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);
        }
예제 #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);
		}