I have been trying to implement a code that enables the user to press the back button to quit, but before he can, an ad shows up.
Press back button > Ad shows > press back button again > quit.
Here is the code that works that enables the user to press the back button,
if (interstitial.IsLoaded ()) {
if (Input.GetKeyDown (KeyCode.Escape)) {
interstitial.Show ();
}
}
I tried multiple codes to try to get the user to see the ad and then quit, but none works.
↧