Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void ChangeGraph(GraphDense graph)
 {
     this.graph   = graph;
     this.current = graph.entry;
 }
Exemplo n.º 4
0
 public MarkovNavigation(GraphDense graph)
 {
     ChangeGraph(graph);
 }