Ejemplo n.º 1
0
    public void PauseSound(string audioName)
    {
        WwiseFormatting(ref audioName);

        if (eventNameToIDs.ContainsKey(audioName))
        {
            foreach (uint ID in eventNameToIDs[audioName])
            {
                AkSoundEngine.ExecuteActionOnPlayingID(AkActionOnEventType.AkActionOnEventType_Pause, ID);
            }
        }
        else
        {
            Debug.LogWarning("Wwise Warning: " + audioName + " can not be paused.");
        }
    }