Exemple #1
0
 static public NDTweenWorker To(GameObject target, float timeInSeconds, Vector2 position, Vector2 scale, Vector3 rotation, NDTweenOptions opts)
 {
     return(NDUITween.To(target, timeInSeconds, position, scale, rotation, NDUITween.GetCurrentAlpha(target), opts.easing, opts.delay, opts.destroyOnComplete, opts.clearCurrentTweens, opts.autoPlay));
 }
Exemple #2
0
        static public NDTweenWorker To(GameObject target, float timeInSeconds, Vector2 position, Vector2 scale, Func <float, float> easing = null, float delay = 0f, bool destroyOnComplete = true, bool clearCurrentTweens = true, bool autoPlay = true)
        {
            RectTransform rTransform = target.GetComponent <RectTransform>();

            return(NDUITween.To(target, timeInSeconds, position, scale, rTransform.localRotation.eulerAngles, NDUITween.GetCurrentAlpha(target), easing, delay, destroyOnComplete, clearCurrentTweens, autoPlay));
        }
Exemple #3
0
        static public NDTweenWorker To(GameObject target, float timeInSeconds, Vector2 position, Vector2 scale, NDTweenOptions opts)
        {
            RectTransform rTransform = target.GetComponent <RectTransform>();

            return(NDUITween.To(target, timeInSeconds, position, scale, rTransform.localRotation.eulerAngles, NDUITween.GetCurrentAlpha(target), opts.easing, opts.delay, opts.destroyOnComplete, opts.clearCurrentTweens, opts.autoPlay));
        }
Exemple #4
0
        static public NDTweenWorker RotateFrom(GameObject target, float timeInSeconds, Vector3 rotation, Func <float, float> easing = null, float delay = 0f, bool destroyOnComplete = true, bool clearCurrentTweens = true, bool autoPlay = true)
        {
            RectTransform rTransform = target.GetComponent <RectTransform>();

            return(NDUITween.From(target, timeInSeconds, rTransform.anchoredPosition, rTransform.localScale, rotation, NDUITween.GetCurrentAlpha(target), easing, delay, destroyOnComplete, clearCurrentTweens, autoPlay));
        }
Exemple #5
0
        static public NDTweenWorker RotateFrom(GameObject target, float timeInSeconds, Vector3 rotation, NDTweenOptions opts)
        {
            RectTransform rTransform = target.GetComponent <RectTransform>();

            return(NDUITween.From(target, timeInSeconds, rTransform.anchoredPosition, rTransform.localScale, rotation, NDUITween.GetCurrentAlpha(target), opts.easing, opts.delay, opts.destroyOnComplete, opts.clearCurrentTweens, opts.autoPlay));
        }
Exemple #6
0
 static public NDTweenWorker From(GameObject target, float timeInSeconds, Vector2 position, Vector2 scale, Vector3 rotation, Func <float, float> easing = null, float delay = 0f, bool destroyOnComplete = true, bool clearCurrentTweens = true, bool autoPlay = true)
 {
     return(NDUITween.From(target, timeInSeconds, position, scale, rotation, NDUITween.GetCurrentAlpha(target), easing, delay, destroyOnComplete, clearCurrentTweens, autoPlay));
 }