public GameObject generateSegment(SegmentType segmentType) { PatternType patternType = TrackGenerationUtility.randomizePatternType(); GameObject segment = resourcesFactory.cloneSegmentHolder(); segmentSequenceGenerator.generateTrack(segmentType); return(segment); }