Esempio n. 1
0
            /// <summary>
            /// adds a property tween that will start as soon as the current tween completes
            /// </summary>
            public Tween next(float duration, IGoKitLiteTweenProperty newPropertyTween)
            {
                var tween = GoKitLite.instance.nextAvailableTween(transform, duration, TweenType.Property);

                //tween.delay = delay;
                tween.easeFunction  = easeFunction;
                tween.propertyTween = newPropertyTween;

                nextTween = tween;

                return(tween);
            }
Esempio n. 2
0
        public Tween propertyTween(IGoKitLiteTweenProperty propertyTween, float duration, float delay = 0, EaseFunction easeFunction = null)
        {
            var tween = nextAvailableTween(this.transform, duration, TweenType.Property);

            tween.delay         = delay;
            tween.easeFunction  = easeFunction;
            tween.propertyTween = propertyTween;

            tween.prepareForUse();
            _activeTweens.Add(tween);

            return(tween);
        }
Esempio n. 3
0
		public Tween propertyTween( IGoKitLiteTweenProperty propertyTween, float duration, float delay = 0, EaseFunction easeFunction = null )
		{
			var tween = nextAvailableTween( this.transform, duration, TweenType.Property );
			tween.delay = delay;
			tween.easeFunction = easeFunction;
			tween.propertyTween = propertyTween;

			tween.prepareForUse();
			_activeTweens.Add( tween );

			return tween;
		}
Esempio n. 4
0
			/// <summary>
			/// adds a property tween that will start as soon as the current tween completes
			/// </summary>
			public Tween next( float duration, IGoKitLiteTweenProperty newPropertyTween )
			{
				var tween = GoKitLite.instance.nextAvailableTween( transform, duration, TweenType.Property );
				//tween.delay = delay;
				tween.easeFunction = easeFunction;
				tween.propertyTween = newPropertyTween;

				nextTween = tween;

				return tween;
			}