Ejemplo n.º 1
0
        public void Reset(params string[] root)
        {
            position = Vector2.zero;

            rootItem = new TreeItem()
            {
                tree       = this,
                id         = "$root",
                height     = 0,
                depth      = -1,
                _isOpen    = true,
                highlight  = false,
                childCount = root.Length
            };

            rootItem.RefreshChildren(root);
            rootItem.DeepOpen();
        }