Example #1
0
    public void StopSound(StopSoundHandle handle, GameObject obj)
    {
        string identifier = string.Empty;

        switch (handle)
        {
        case StopSoundHandle.Pause:
            identifier = "pause"; break;

        case StopSoundHandle.PieCharge:
            identifier = "pieChargeStop"; break;

        case StopSoundHandle.TilesClicks:
            identifier = "stopTilesClicks"; break;

        case StopSoundHandle.TilesGrinding:
            identifier = "stopTilesGrinding"; break;

        case StopSoundHandle.TilesRubble:
            identifier = "stopTilesRubble"; break;

        default:
            throw new System.NotImplementedException("Enum variant doesn't exist, update StopSound method (AudioManager.cs)");
        }

        AkSoundEngine.PostEvent(identifier, obj);
    }
Example #2
0
 public void StopSound(StopSoundHandle handle)
 {
     StopSound(handle, gameObject);
 }
Example #3
0
 public static void StopSound(StopSoundHandle handle)
 {
     audioManager.StopSound(handle);
 }
Example #4
0
 public static void StopSound(StopSoundHandle handle, GameObject obj)
 {
     audioManager.StopSound(handle, obj);
 }