Exemple #1
0
    void Start()
    {
        GameObject listButtonPanel = GameObject.FindGameObjectWithTag("ListButtonPanel");

        handler = AudioUtility.PlaySoundAsQueue(new string[3] {
            "Blumenkranz", "DOES", "Shinnchann"
        });
        handler.notDespawn = true;
        handler.Pause();
        list_button = new Button[handler.Length];
        for (int i = 0; i < handler.Length; i++)
        {
            list_button[i] = listButtonPanel.transform.GetChild(i).GetComponent <Button>();
            list_button[i].SetText(handler[i].audioClip.name);
        }
    }