void OnValidate() { if (transitions == null) { transitions = new GraphDense(clips.Length); } transitions.nodeCount = clips.Length; if (transitions.nodeData.Length != clips.Length) { transitions.nodeData = new SoundClip[clips.Length]; } //clips.CopyTo(transitions.nodeData, 0); }
void OnValidate() { if (transitions == null) { transitions = new GraphDense(parts.Length); } transitions.nodeCount = parts.Length; if (transitions.nodeData.Length != parts.Length) { transitions.nodeData = new SongPart[parts.Length]; } parts.CopyTo(transitions.nodeData, 0); }
public void ChangeGraph(GraphDense graph) { this.graph = graph; this.current = graph.entry; }
public MarkovNavigation(GraphDense graph) { ChangeGraph(graph); }