public static int InverseTransformPoint(IntPtr L)
{
int result = 1;
int count = LuaDLL.lua_gettop(L);
if (count == 2 &&
LuaStatic.CheckType(L, typeof(UnityEngine.Vector3), 2))
{
UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform;
UnityEngine.Vector3 arg1 = (UnityEngine.Vector3)LuaStatic.GetObj(L, 2);
LuaDLL.lua_pushvector3(L, obj.InverseTransformPoint(arg1));
return(result);
}
if (count == 4 &&
LuaStatic.CheckType(L, typeof(Single), 2) &&
LuaStatic.CheckType(L, typeof(Single), 3) &&
LuaStatic.CheckType(L, typeof(Single), 4))
{
UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform;
Single arg1 = (Single)(double)(LuaStatic.GetObj(L, 2));
Single arg2 = (Single)(double)(LuaStatic.GetObj(L, 3));
Single arg3 = (Single)(double)(LuaStatic.GetObj(L, 4));
LuaDLL.lua_pushvector3(L, obj.InverseTransformPoint(arg1, arg2, arg3));
return(result);
}
LuaStatic.traceback(L, "count not enough");
LuaDLL.lua_error(L);
return(result);
}