Пример #1
0
    void DisplayAd()
    {
        RevMobManager rmm = (RevMobManager)FindObjectOfType(typeof(RevMobManager));

        if (rmm != null)
        {
            rmm.DisplayAd();
        }
        else
        {
            Debug.LogWarning("RevMobManager Script Not Found!");
        }
    }
Пример #2
0
    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());
    }