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); }
public void StopSound(StopSoundHandle handle) { StopSound(handle, gameObject); }
public static void StopSound(StopSoundHandle handle) { audioManager.StopSound(handle); }
public static void StopSound(StopSoundHandle handle, GameObject obj) { audioManager.StopSound(handle, obj); }