void onEnable() { print("enabled"); cha.MouseSwitch(false); drop.ClearOptions(); List <string> ops = new List <string> (); ops.Add("CHOOSE A SONG"); for (int i = 0; i < songCount; i++) { players [i] = songs.transform.GetChild(i).gameObject; ops.Add(players[i].name); print(players [i].name); } //songs = Resources.LoadAll("/music") as AudioClip[]; drop.AddOptions(ops); }
void NoChange() { aud.Play(); cha.MouseSwitch(true); button.SetActive(true); }