Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function descend_tree(node)
  2.     for i=0,node:get_children_size()-1,1 do
  3.         local subnodo = node:get_children(i)
  4.         if subnodo ~= nil then
  5.             -- fai qualcosa col subnodo
  6.            
  7.             descend_tree(subnodo)
  8.         end
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement