예제 #1
0
    public static Tween DOTO(DG.Tweening.Core.DOGetter <Vector3> getter, DG.Tweening.Core.DOSetter <Vector3> setter, Vector3 endValue, float duration, string ease = "OutQuad", float delay = 0f)
    {
        Ease  easeType = (Ease)Enum.Parse(typeof(Ease), ease);
        Tween tween    = DOTween.To(getter, setter, endValue, duration).SetEase(easeType).SetDelay(delay);

        return(tween);
    }
예제 #2
0
    static int set_getter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions> obj = (DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions>)o;
            DG.Tweening.Core.DOGetter <UnityEngine.Vector3> arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (DG.Tweening.Core.DOGetter <UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Core.DOGetter <UnityEngine.Vector3>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(DG.Tweening.Core.DOGetter <UnityEngine.Vector3>), func) as DG.Tweening.Core.DOGetter <UnityEngine.Vector3>;
            }

            obj.getter = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index getter on a nil value" : e.Message));
        }
    }
예제 #3
0
        static StackObject *To_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @duration = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Single @endValue = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            DG.Tweening.Core.DOSetter <System.Single> @setter = (DG.Tweening.Core.DOSetter <System.Single>) typeof(DG.Tweening.Core.DOSetter <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            DG.Tweening.Core.DOGetter <System.Single> @getter = (DG.Tweening.Core.DOGetter <System.Single>) typeof(DG.Tweening.Core.DOGetter <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = DG.Tweening.DOTween.To(@getter, @setter, @endValue, @duration);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
예제 #4
0
 public static Delegate DOGetter_string(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <string> d = () =>
     {
         object[] objs = func.Call();
         return((string)objs[0]);
     };
     return(d);
 }
예제 #5
0
 public static Delegate DOGetter_double(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <double> d = () =>
     {
         object[] objs = func.Call();
         return((double)objs[0]);
     };
     return(d);
 }
예제 #6
0
 public static Delegate DOGetter_Quaternion(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <Quaternion> d = () =>
     {
         object[] objs = func.Call();
         return((Quaternion)objs[0]);
     };
     return(d);
 }
예제 #7
0
 public static Delegate DOGetter_Color(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <Color> d = () =>
     {
         object[] objs = func.Call();
         return((Color)objs[0]);
     };
     return(d);
 }
예제 #8
0
 public static Delegate DOGetter_RectOffset(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <RectOffset> d = () =>
     {
         object[] objs = func.Call();
         return((RectOffset)objs[0]);
     };
     return(d);
 }
예제 #9
0
 public static Delegate DOGetter_Vector4(LuaFunction func)
 {
     DG.Tweening.Core.DOGetter <Vector4> d = () =>
     {
         object[] objs = func.Call();
         return((Vector4)objs[0]);
     };
     return(d);
 }
예제 #10
0
    public static Delegate DG_Tweening_Core_DOGetter_UnityEngine_Color(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOGetter <UnityEngine.Color> fn = delegate { return(default(UnityEngine.Color)); };
            return(fn);
        }

        DG.Tweening.Core.DOGetter <UnityEngine.Color> d = (new DG_Tweening_Core_DOGetter_UnityEngine_Color_Event(func)).Call;
        return(d);
    }
예제 #11
0
    public static Delegate DG_Tweening_Core_DOGetter_string(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOGetter <string> fn = delegate { return(null); };
            return(fn);
        }

        DG.Tweening.Core.DOGetter <string> d = (new DG_Tweening_Core_DOGetter_string_Event(func)).Call;
        return(d);
    }
예제 #12
0
    public static Delegate DG_Tweening_Core_DOGetter_double(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOGetter <double> fn = delegate { return(0); };
            return(fn);
        }

        DG.Tweening.Core.DOGetter <double> d = (new DG_Tweening_Core_DOGetter_double_Event(func)).Call;
        return(d);
    }
예제 #13
0
    public static Delegate DG_Tweening_Core_DOGetter_UnityEngine_RectOffset(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOGetter <UnityEngine.RectOffset> fn = delegate { return(null); };
            return(fn);
        }

        DG.Tweening.Core.DOGetter <UnityEngine.RectOffset> d = (new DG_Tweening_Core_DOGetter_UnityEngine_RectOffset_Event(func)).Call;
        return(d);
    }
    static int QPYX_set_getter_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.QuaternionOptions> QPYX_obj_YXQP = (DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.QuaternionOptions>)QPYX_o_YXQP;
            DG.Tweening.Core.DOGetter <UnityEngine.Vector3> QPYX_arg0_YXQP = (DG.Tweening.Core.DOGetter <UnityEngine.Vector3>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <UnityEngine.Vector3> >(L_YXQP, 2);
            QPYX_obj_YXQP.getter = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index getter on a nil value"));
        }
    }
    static int QPYX_get_getter_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions> QPYX_obj_YXQP = (DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions>)QPYX_o_YXQP;
            DG.Tweening.Core.DOGetter <UnityEngine.Vector3> QPYX_ret_YXQP = QPYX_obj_YXQP.getter;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index getter on a nil value"));
        }
    }
예제 #16
0
    static int set_getter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions> obj = (DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions>)o;
            DG.Tweening.Core.DOGetter <UnityEngine.Quaternion> arg0 = (DG.Tweening.Core.DOGetter <UnityEngine.Quaternion>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <UnityEngine.Quaternion> >(L, 2);
            obj.getter = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index getter on a nil value"));
        }
    }
예제 #17
0
 static int QPYX_ToGeterSeterFloat_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 4);
         DG.Tweening.Core.DOGetter <float> QPYX_arg0_YXQP = (DG.Tweening.Core.DOGetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <float> >(L_YXQP, 1);
         DG.Tweening.Core.DOSetter <float> QPYX_arg1_YXQP = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L_YXQP, 2);
         float             QPYX_arg2_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
         float             QPYX_arg3_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 4);
         DG.Tweening.Tween QPYX_o_YXQP    = CustomerUtil.ToGeterSeterFloat(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
         ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
예제 #18
0
    static int get_getter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions> obj = (DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions>)o;
            DG.Tweening.Core.DOGetter <UnityEngine.Quaternion> ret = obj.getter;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index getter on a nil value"));
        }
    }
예제 #19
0
 static int ToGeterSeterFloat(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         DG.Tweening.Core.DOGetter <float> arg0 = (DG.Tweening.Core.DOGetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <float> >(L, 1);
         DG.Tweening.Core.DOSetter <float> arg1 = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L, 2);
         float             arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
         float             arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
         DG.Tweening.Tween o    = CustomerUtil.ToGeterSeterFloat(arg0, arg1, arg2, arg3);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #20
0
 public static Tweener DoCustomRotate(this TransformHandler target, float endValue, float duration)
 {
     DG.Tweening.Core.DOGetter <float> getter = () => { return(target.degreeValue); };
     DG.Tweening.Core.DOSetter <float> setter = (value) => { target.degreeValue = value; };
     return(DOTween.To(getter, setter, endValue, duration));
 }
예제 #21
0
 public static Tween ToGeterSeterFloat(DG.Tweening.Core.DOGetter <float> getter, DG.Tweening.Core.DOSetter <float> setter, float endVal, float duration)
 {
     return(DOTween.To(getter, setter, endVal, duration));
 }