예제 #1
0
    static int TraversalNode(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Transform));
            System.Action <UnityEngine.Transform> arg1 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg1 = (System.Action <UnityEngine.Transform>)ToLua.CheckObject(L, 2, typeof(System.Action <UnityEngine.Transform>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg1 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.Transform>), func) as System.Action <UnityEngine.Transform>;
            }

            UnGfx.TraversalNode(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }