예제 #1
0
    static int get_animationType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation          obj = (DG.Tweening.DOTweenAnimation)o;
            DG.Tweening.Core.DOTweenAnimationType ret = obj.animationType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index animationType on a nil value"));
        }
    }
예제 #2
0
    static int set_animationType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.DOTweenAnimation          obj  = (DG.Tweening.DOTweenAnimation)o;
            DG.Tweening.Core.DOTweenAnimationType arg0 = (DG.Tweening.Core.DOTweenAnimationType)ToLua.CheckObject(L, 2, typeof(DG.Tweening.Core.DOTweenAnimationType));
            obj.animationType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index animationType on a nil value"));
        }
    }