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); }
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); }
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); }
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); }
public void Play() { if (tweenObject != null) { if (!tweenObject.IsComplete()) { tweenObject.Play(); } } else { tweenObject = CreateTweenObject(); } }