public VirtualGameObject(Tag tag, Tag[] depth, Dictionary <KV_KEY, string> kv, string prefabName) { this.tag = tag; this.depth = depth; this.padding = new Padding(); this.vTransform = new VirtualTransform(this); this.keyValueStore = kv; this.prefabName = prefabName; }
public void SetParent(VirtualTransform t) { t._childlen.Add(this.vGameObject); this.vGameObject.parent = t.vGameObject; }