Esempio n. 1
0
        public static TweenerCore <Vector3, Vector3, VectorOptions> ToAxis(DOGetter <Vector3> getter, DOSetter <Vector3> setter, float endValue, float duration, AxisConstraint axisConstraint = AxisConstraint.X)
        {
            TweenerCore <Vector3, Vector3, VectorOptions> tweenerCore = DOTween.ApplyTo <Vector3, Vector3, VectorOptions>(getter, setter, new Vector3(endValue, endValue, endValue), duration, null);

            tweenerCore.plugOptions.axisConstraint = axisConstraint;
            return(tweenerCore);
        }
Esempio n. 2
0
        public static TweenerCore <Vector3, Vector3[], Vector3ArrayOptions> ToArray(DOGetter <Vector3> getter, DOSetter <Vector3> setter, Vector3[] endValues, float[] durations)
        {
            int num = durations.Length;

            if (num != endValues.Length)
            {
                Debugger.LogError("To Vector3 array tween: endValues and durations arrays must have the same length");
                return(null);
            }
            Vector3[] array  = new Vector3[num];
            float[]   array2 = new float[num];
            for (int i = 0; i < num; i++)
            {
                array[i]  = endValues[i];
                array2[i] = durations[i];
            }
            float num2 = 0f;

            for (int j = 0; j < num; j++)
            {
                num2 += array2[j];
            }
            TweenerCore <Vector3, Vector3[], Vector3ArrayOptions> tweenerCore = DOTween.ApplyTo <Vector3, Vector3[], Vector3ArrayOptions>(getter, setter, array, num2, null).NoFrom <Vector3, Vector3[], Vector3ArrayOptions>();

            tweenerCore.plugOptions.durations = array2;
            return(tweenerCore);
        }
Esempio n. 3
0
 public static Tweener ToAlpha(DOGetter <Color> getter, DOSetter <Color> setter, float endValue, float duration)
 {
     return(DOTween.ApplyTo <Color, Color, ColorOptions>(getter, setter, new Color(0f, 0f, 0f, endValue), duration, null).SetOptions(true));
 }
Esempio n. 4
0
 public static TweenerCore <T1, T2, TPlugOptions> To <T1, T2, TPlugOptions>(ABSTweenPlugin <T1, T2, TPlugOptions> plugin, DOGetter <T1> getter, DOSetter <T1> setter, T2 endValue, float duration) where TPlugOptions : struct
 {
     return(DOTween.ApplyTo <T1, T2, TPlugOptions>(getter, setter, endValue, duration, plugin));
 }
Esempio n. 5
0
 public static Tweener To(DOGetter <RectOffset> getter, DOSetter <RectOffset> setter, RectOffset endValue, float duration)
 {
     return(DOTween.ApplyTo <RectOffset, RectOffset, NoOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 6
0
 public static TweenerCore <Quaternion, Vector3, QuaternionOptions> To(DOGetter <Quaternion> getter, DOSetter <Quaternion> setter, Vector3 endValue, float duration)
 {
     return(DOTween.ApplyTo <Quaternion, Vector3, QuaternionOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 7
0
 public static TweenerCore <Vector4, Vector4, VectorOptions> To(DOGetter <Vector4> getter, DOSetter <Vector4> setter, Vector4 endValue, float duration)
 {
     return(DOTween.ApplyTo <Vector4, Vector4, VectorOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 8
0
 public static Tweener To(DOGetter <uint> getter, DOSetter <uint> setter, uint endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <uint, uint, UintOptions>)null));
 }
Esempio n. 9
0
 public static Tweener To(DOGetter <ulong> getter, DOSetter <ulong> setter, ulong endValue, float duration)
 {
     return(DOTween.ApplyTo <ulong, ulong, NoOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 10
0
 public static TweenerCore <float, float, FloatOptions> To(DOGetter <float> getter, DOSetter <float> setter, float endValue, float duration)
 {
     return(DOTween.ApplyTo <float, float, FloatOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 11
0
 internal static TweenerCore <Color2, Color2, ColorOptions> To(DOGetter <Color2> getter, DOSetter <Color2> setter, Color2 endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <Color2, Color2, ColorOptions>)null));
 }
Esempio n. 12
0
 public static TweenerCore <Rect, Rect, RectOptions> To(DOGetter <Rect> getter, DOSetter <Rect> setter, Rect endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <Rect, Rect, RectOptions>)null));
 }
Esempio n. 13
0
 public static TweenerCore <Vector3, Vector3, VectorOptions> To(DOGetter <Vector3> getter, DOSetter <Vector3> setter, Vector3 endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <Vector3, Vector3, VectorOptions>)null));
 }
Esempio n. 14
0
 public static Tweener To(DOGetter <long> getter, DOSetter <long> setter, long endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <long, long, NoOptions>)null));
 }
Esempio n. 15
0
 public static TweenerCore <string, string, StringOptions> To(DOGetter <string> getter, DOSetter <string> setter, string endValue, float duration)
 {
     return(DOTween.ApplyTo <string, string, StringOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 16
0
 public static TweenerCore <Color2, Color2, ColorOptions> To(DOGetter <Color2> getter, DOSetter <Color2> setter, Color2 endValue, float duration)
 {
     return(DOTween.ApplyTo <Color2, Color2, ColorOptions>(getter, setter, endValue, duration, null));
 }
Esempio n. 17
0
 public static TweenerCore <double, double, NoOptions> To(DOGetter <double> getter, DOSetter <double> setter, double endValue, float duration)
 {
     return(DOTween.ApplyTo(getter, setter, endValue, duration, (ABSTweenPlugin <double, double, NoOptions>)null));
 }