예제 #1
0
        public static int FindChild(IntPtr L)
        {
            int result = 1;
            int count  = LuaDLL.lua_gettop(L);

            if (count != 2)
            {
                LuaStatic.traceback(L, "count not enough");
                LuaDLL.lua_error(L);
                return(result);
            }
            UnityEngine.Transform obj = LuaStatic.GetObj(L, 1) as UnityEngine.Transform;
            String arg1 = (String)LuaStatic.GetObj(L, 2);

            LuaStatic.addGameObject2Lua(L, obj.FindChild(arg1), "Transform");
            return(result);
        }