Esempio n. 1
0
 static int Refresh(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         GizmoBezierLine obj = (GizmoBezierLine)ToLua.CheckObject(L, 1, typeof(GizmoBezierLine));
         obj.Refresh();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
    static int set_points(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GizmoBezierLine       obj  = (GizmoBezierLine)o;
            UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray <UnityEngine.Vector3>(L, 2);
            obj.points = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index points on a nil value" : e.Message));
        }
    }
Esempio n. 3
0
    static int get_smooth(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GizmoBezierLine obj = (GizmoBezierLine)o;
            int             ret = obj.smooth;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index smooth on a nil value" : e.Message));
        }
    }
Esempio n. 4
0
    static int get_points(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GizmoBezierLine       obj = (GizmoBezierLine)o;
            UnityEngine.Vector3[] ret = obj.points;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index points on a nil value" : e.Message));
        }
    }
Esempio n. 5
0
    static int set_smooth(IntPtr L)
    {
        object o = null;

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