Example #1
0
        public static Node Instantiate(PartsTreeSystem.NodeTreeGroup nodeTreeGroup, PartsTreeSystem.Environment environment)
        {
            var instance = PartsTreeSystem.Utility.CreateNodeFromNodeTreeGroup(nodeTreeGroup, environment);


            if (instance.Root is Node node)
            {
                return(node);
            }
            else
            {
                throw new Exception();
            }
        }
Example #2
0
        public static Node Instantiate(PartsTreeSystem.NodeTreeGroup nodeTreeGroup)
        {
            var env = new PartsTreeSystem.Environment();

            return(Instantiate(nodeTreeGroup, env));
        }