少年修仙传客户端基础资源
client_Wu Xijin
2019-06-19 f1c47accd446f5cb037719badd980c5f7fe90656
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using UnityEngine;
 
namespace Poco
{
    public class UnityDumper: AbstractDumper
    {
        public override AbstractNode getRoot ()
        {
            return new RootNode ();
        }
    }
 
    public class RootNode: AbstractNode
    {
        private List<AbstractNode> children = null;
 
        public RootNode ()
        {
            children = new List<AbstractNode> ();
            foreach (GameObject obj in Transform.FindObjectsOfType(typeof(GameObject))) {
                if (obj.transform.parent == null) {
                    children.Add (new UnityNode (obj));
                }
            }
        }
 
        public override List<AbstractNode> getChildren () //<Modified> 
        {
            return children;
        }
    }
}