Exemplo n.º 1
0
    // ======================================================================================
    public static void PlaySoundEvent(eSoundEventType _event)
    {
        switch (_event)
        {
        case eSoundEventType.FistAttk:
            m_manager.StartCoroutine(m_manager.PlayAudioClip(m_manager.m_soundLib.m_fistAttkSFX));
            break;

        case eSoundEventType.SaberAttk:
            m_manager.StartCoroutine(m_manager.PlayAudioClip(m_manager.m_soundLib.m_saberAttkSFX));
            break;

        case eSoundEventType.PistolAttk:
            m_manager.StartCoroutine(m_manager.PlayAudioClip(m_manager.m_soundLib.m_pistolAttkSFX));
            break;


        case eSoundEventType.Dash:
            m_manager.StartCoroutine(m_manager.PlayAudioClip(m_manager.m_soundLib.m_dashSFX));
            break;

        case eSoundEventType.Death:
            m_manager.StartCoroutine(m_manager.PlayAudioClip(m_manager.m_soundLib.m_deathSFX));
            break;
        }
    }