void DisplayAd() { RevMobManager rmm = (RevMobManager)FindObjectOfType(typeof(RevMobManager)); if (rmm != null) { rmm.DisplayAd(); } else { Debug.LogWarning("RevMobManager Script Not Found!"); } }
public void onQuit() { Debug.Log("PlayerController.cs onQuit()"); // Display Ad Before Quit. RevMobManager rmm = (RevMobManager)FindObjectOfType(typeof(RevMobManager)); if (rmm != null) { rmm.DisplayAd(); } else { Debug.LogWarning("RevMobManager Script Not Found!"); } StartCoroutine(fadeToMainMenu()); }