示例#1
0
    static int get_start(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.UVChainLightning obj = (Arthas.UVChainLightning)o;
            UnityEngine.Transform   ret = obj.start;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index start on a nil value"));
        }
    }
示例#2
0
    static int set_yOffset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.UVChainLightning obj = (Arthas.UVChainLightning)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.yOffset = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index yOffset on a nil value"));
        }
    }
示例#3
0
    static int get_displacement(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.UVChainLightning obj = (Arthas.UVChainLightning)o;
            float ret = obj.displacement;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index displacement on a nil value"));
        }
    }
示例#4
0
    static int set_start(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Arthas.UVChainLightning obj  = (Arthas.UVChainLightning)o;
            UnityEngine.Transform   arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2);
            obj.start = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index start on a nil value"));
        }
    }