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(); } }
public static Node Instantiate(PartsTreeSystem.NodeTreeGroup nodeTreeGroup) { var env = new PartsTreeSystem.Environment(); return(Instantiate(nodeTreeGroup, env)); }