示例#1
0
 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);
 }
示例#2
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);
 }
示例#3
0
 public void ChangeGraph(GraphDense graph)
 {
     this.graph   = graph;
     this.current = graph.entry;
 }
示例#4
0
 public MarkovNavigation(GraphDense graph)
 {
     ChangeGraph(graph);
 }