static int SetFloat(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes <int, float>(L, 2))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 1, typeof(UnityEngine.MaterialPropertyBlock));
int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
obj.SetFloat(arg0, arg1);
return(0);
}
else if (count == 3 && TypeChecker.CheckTypes <string, float>(L, 2))
{
UnityEngine.MaterialPropertyBlock obj = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 1, typeof(UnityEngine.MaterialPropertyBlock));
string arg0 = ToLua.ToString(L, 2);
float arg1 = (float)LuaDLL.lua_tonumber(L, 3);
obj.SetFloat(arg0, arg1);
return(0);
}
else
{
return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.MaterialPropertyBlock.SetFloat"));
}
}
catch (Exception e)
{
return(LuaDLL.toluaL_exception(L, e));
}
}