Why is my sound script interfering with my advertises
<p>I added sound effects to android game after I set up the rewarded advertises with admob on Unity. Here is my script for rewarded ads:</p>

<pre><code>string adUnitId = "ca-app-pub-5920324855307233/4458481507";
RewardBasedVideoAd rewardBasedVideo = null;

void Start () {
    managerScript = gameObject.GetComponent&lt;GameManager&gt;();
    isCalled = false;
    rewardBasedVideo = RewardBasedVideoAd.Instance;
}

public void adButton(){
    isCalled = true;
    AdRequest request = new AdRequest.Builder().Build();
    rewardBasedVideo.OnAdRewarded += HandleRewardBasedVideoRewarded;
    rewardBasedVideo.LoadAd(request, adUnitId);
}

void Update(){
    if(isCalled == true){
        adButton();
        showAd();
    }
}

public void showAd(){
    if (rewardBasedVideo.IsLoaded()){
        rewardBasedVideo.Show();
    }
}

public void HandleRewardBasedVideoRewarded(object sender, Reward args){
    isCalled = false;
    managerScript.revival();
    managerScript.Loading.SetActive(false);
    rewardBasedVideo.OnAdRewarded -= HandleRewardBasedVideoRewarded;
}
</code></pre>

<p>Here is my script for sound effects (sound script):</p>

<pre><code>public AudioClip Death;
public static bool toggled;
public static Sounds Instance;

public void DeathSound(){
    if(toggled == true){
    GetComponent&lt;AudioSource&gt;().PlayOneShot(Death);
  }
}

public void SoundToggle(){
if(toggled == false){
        toggled = true;
}else if(toggled == true){
        toggled = false;
    }
}
</code></pre>

<p>Finally how I call for a sound in another script:</p>

<pre><code>Sounds sound;
GameObject soundManager;

public void Start(){
    soundManager = GameObject.Find("Sound Manager");
    sound = soundManager.GetComponent&lt;Sounds&gt;();
}

public void Death(){
    sound.DeathSound();
}
</code></pre>

<p>The problem is for some reason when the boolean "toggled" is true in the Sound script, the HandleRewardBasedVideoRewarded method does not occur after the rewarded video advertise finishes. When sound is not toggled the method is called after the advertise and works fine. How is the sound effects being on affecting the method that happens after an advertise finishes? This problem is bothering me. Can someone help?</p>

<p><strong>Update:</strong>
I tried disabling sound before the ad is loaded and then re enabling it after the ad. The problem still happens. Im not 100% certain but maybe the toggle bool has some effect, but I dont know how.</p>