47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
using System;
|
|||
|
using LuaInterface;
|
|||
|
|
|||
|
public class ShadowUtilsWrap
|
|||
|
{
|
|||
|
public static void Register(LuaState L)
|
|||
|
{
|
|||
|
L.BeginStaticLibs("ShadowUtils");
|
|||
|
L.RegFunction("SetLightCamera", SetLightCamera);
|
|||
|
L.EndStaticLibs();
|
|||
|
}
|
|||
|
|
|||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
static int SetLightCamera(IntPtr L)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|||
|
if (count == 2 && TypeChecker.CheckTypes<UnityEngine.Bounds, UnityEngine.Camera>(L, 1))
|
|||
|
{
|
|||
|
UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 1);
|
|||
|
UnityEngine.Camera arg1 = (UnityEngine.Camera)ToLua.ToObject(L, 2);
|
|||
|
ShadowUtils.SetLightCamera(arg0, arg1);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
else if (count == 2 && TypeChecker.CheckTypes<UnityEngine.Camera, UnityEngine.Camera>(L, 1))
|
|||
|
{
|
|||
|
UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.ToObject(L, 1);
|
|||
|
UnityEngine.Camera arg1 = (UnityEngine.Camera)ToLua.ToObject(L, 2);
|
|||
|
ShadowUtils.SetLightCamera(arg0, arg1);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: ShadowUtils.SetLightCamera");
|
|||
|
}
|
|||
|
}
|
|||
|
catch (Exception e)
|
|||
|
{
|
|||
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|