Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function descend_tree(node)
- for i=0,node:get_children_size()-1,1 do
- local subnodo = node:get_children(i)
- if subnodo ~= nil then
- -- fai qualcosa col subnodo
- descend_tree(subnodo)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement