Example #1
0
    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);
    }
Example #2
0
 void NoChange()
 {
     aud.Play();
     cha.MouseSwitch(true);
     button.SetActive(true);
 }