コード例 #1
0
    static int get_worldOffset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIFollowingTarget   obj = (UIFollowingTarget)o;
            UnityEngine.Vector3 ret = obj.worldOffset;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index worldOffset on a nil value" : e.Message));
        }
    }
コード例 #2
0
    static int set_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIFollowingTarget     obj  = (UIFollowingTarget)o;
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
            obj.target = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message));
        }
    }
コード例 #3
0
    static int get_yOffset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIFollowingTarget obj = (UIFollowingTarget)o;
            float             ret = obj.yOffset;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index yOffset on a nil value" : e.Message));
        }
    }
コード例 #4
0
    static int set_yOffset(IntPtr L)
    {
        object o = null;

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