Exemplo n.º 1
0
        private int GetNodeHierarchySize(Godot.Node node)
        {
            var size = 1;

            for (int i = 0; i < node.GetChildCount(); i++)
            {
                size += GetNodeHierarchySize(node.GetChild(i));
            }
            return(size);
        }
Exemplo n.º 2
0
 public static ArcadiaHook GetHook(Godot.Node o)
 {
     for (int i = 0; i < o.GetChildCount(); i++)
     {
         ArcadiaHook found = o.GetChildOrNull <ArcadiaHook>(i);
         if (found != null)
         {
             return(found);
         }
     }
     return(null);
 }