private GameObject selectedObj; // 選択されたオブジェクト. //-------------------------------------------------------------------------------------------------- // コンストラクタ. public ObjectTree(GameObject obj) { this.selectedObj = obj; this.root = new ObjectTreeElem(0, obj.transform.root.gameObject); this.tree = this.createTree(); }
//-------------------------------------------------------------------------------------------------- // コンストラクタ. public ObjectTree( GameObject obj ) { this.selectedObj = obj; this.root = new ObjectTreeElem( 0, obj.transform.root.gameObject ); this.tree = this.createTree(); }