﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace Arugula.Audio
{
    [RequireComponent(typeof(Dropdown))]
    public class PhonicUIDropdown : PhonicHandlerBase
    {
        [PhonicSound] public string onValueChanged;

        private void Awake() => GetComponent<Dropdown>().onValueChanged.AddListener((x) => Play(onValueChanged));
    }

}
