Exemplo n.º 1
0
    public void SetAudioVolume(E_AudioType type, float value)
    {
        switch (type)
        {
        case E_AudioType.Master:
            AudioVolumeInfo.MasterVolume = value;
            break;

        case E_AudioType.Music:
            AudioVolumeInfo.BGMVoulume = value;
            break;

        case E_AudioType.Audio:
            AudioVolumeInfo.AudioVolume = value;
            break;
        }
    }
Exemplo n.º 2
0
 public PlayAudioEvent(DelayEvent eventData)
 {
     _audioType = eventData.AuidoType;
     _audioClip = eventData.Audio;
 }