public void Insert(Song song) { //string str = root.Left.GetSong().getSongName(); //string str2 = song.getSongName(); if (root == null) { root = new SongNode(song); } else { root.Insert(song); } }
void SaveNodeChanges() { EditorUtility.SetDirty(nodes); List <SongNode> songnodeList = new List <SongNode>(); for (int i = 0; i < curve.keys.Length; i++) { Keyframe currentKey = curve.keys[i]; SongNode node = new SongNode(); node.floatTimestamp = currentKey.time; songnodeList.Add(node); } nodes.nodes = songnodeList; }
public BinarySearchTreeSong() { root = null; }