Example #1
0
        public SimulateScenarioItem SizeTo(List <GameObject> goList, Vector2 endSize, float duration, EaseType ease, Callback callback)
        {
            SimulateScenarioItem tweenObj = null;

            if (goList != null && goList.Count > 0)
            {
                tweenObj = new SizeTween(convertToObjects(goList), endSize, duration, Ease[ease], TweenEndValueType.To, callback);
                tweenObj.Play();
            }
            return(tweenObj);
        }
Example #2
0
        public SimulateScenarioItem ScaleOn(List <GameObject> goList, Vector3 scaleCoeff, float duration, EaseType ease, Callback callback)
        {
            SimulateScenarioItem tweenObj = null;

            if (goList != null && goList.Count > 0)
            {
                tweenObj = new ScaleTween(convertToObjects(goList), scaleCoeff, duration, Ease[ease], TweenEndValueType.On, callback);
                tweenObj.Play();
            }
            return(tweenObj);
        }
Example #3
0
        public SimulateScenarioItem ShiftBy(List <GameObject> goList, Vector3 shift, float duration, EaseType ease, TweenSpace space, Callback callback)
        {
            SimulateScenarioItem tweenObj = null;

            if (goList != null && goList.Count > 0)
            {
                tweenObj = new MoveTween(convertToObjects(goList), shift, duration, Ease[ease], space, TweenEndValueType.Shift, callback);
                tweenObj.Play();
            }
            return(tweenObj);
        }
Example #4
0
        public SimulateScenarioItem Fade(List <GameObject> goList, float endOpaque, float duration, EaseType easeType, Callback callback)
        {
            SimulateScenarioItem tweenObj = null;

            if (goList != null && goList.Count > 0)
            {
                tweenObj = new AlphaTween(convertToObjects(goList), endOpaque, duration, Ease[easeType], TweenEndValueType.To, callback);
                tweenObj.Play();
            }
            return(tweenObj);
        }
Example #5
0
 public void Play()
 {
     if (tweenObject != null)
     {
         if (!tweenObject.IsComplete())
         {
             tweenObject.Play();
         }
     }
     else
     {
         tweenObject = CreateTweenObject();
     }
 }