示例#1
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenPath obj = (UITweenPath)ToLua.CheckObject(L, 1, typeof(UITweenPath));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenPath obj  = (UITweenPath)ToLua.CheckObject(L, 1, typeof(UITweenPath));
         bool        arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Play(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
    static int get_path(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPath           obj = (UITweenPath)o;
            UnityEngine.Vector2[] ret = obj.path;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index path on a nil value" : e.Message));
        }
    }
示例#4
0
    static int set_path_duration(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPath obj  = (UITweenPath)o;
            float[]     arg0 = ToLua.CheckNumberArray <float>(L, 2);
            obj.path_duration = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index path_duration on a nil value" : e.Message));
        }
    }
示例#5
0
    static int set_path(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPath           obj  = (UITweenPath)o;
            UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray <UnityEngine.Vector2>(L, 2);
            obj.path = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index path on a nil value" : e.Message));
        }
    }
示例#6
0
    static int set_from(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenPath         obj  = (UITweenPath)o;
            UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
            obj.from = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index from on a nil value" : e.Message));
        }
    }