nabrozidhs / unity_admob_android

Basic Unity3D plugin for AdMob Google Play Services version.
MIT License
25 stars 12 forks source link

Sound after Ad #18

Closed cgydev closed 9 years ago

cgydev commented 10 years ago

Hi, Firstly thanks for the plugin.

I am presenting the full-screen AD under certain conditions. The issue that I have faced is that If user has muted the sound, in Unity I use to mute the sounds, AudioListner.pause = false;

And once the AD plays, and I go back to the game. The sound starts to play and have to manually turn it off in 'InterstitialClosed' event.

Is there something that I can set in plugin that would make it respect the sound setting that have been set in the Unity ?

timmy2702 commented 10 years ago

Try to use AudioListerner.volume = 0 to mute!

cgydev commented 10 years ago

As I mentioned, I am doing that, but I want to understand why I need to do that. Is there something being done in the plugin that turns the sound ON ?

nabrozidhs commented 10 years ago

The plugin by itself does not modify your game status at all.

My guess is that you are implementing either OnEnable or OnApplicationFocus in some of your audio related scripts.