Esempio n. 1
0
 public void ShowTestRewarded1()
 {
     if (TestRewarded1.IsReady)
     {
         TestRewarded1.Show();
     }
     else
     {
         Debug.Log("Test TestRewarded1 is no ready");
     }
 }
Esempio n. 2
0
    public async void ShowRewarded1Await()
    {
        // Show the add
        UnityEngine.Advertisements.ShowResult result;
        try
        {
            Debug.Log("Awiting for: " + TestRewarded1.name);
            result = await TestRewarded1.Show();
        }
        catch (System.Exception)
        {
            result = UnityEngine.Advertisements.ShowResult.Failed;
        }

        Debug.Log("Result: " + result);
    }