Exemplo n.º 1
0
    public void UnlockZoom()
    {
        if (ZoomUnlocked)
        {
            return;
        }

        AdPlayer.ShowRewarded((ShowResult res) =>
        {
            if (res == ShowResult.Finished)
            {
                ZoomUnlocked = true;
                ZoomSlider.SetActive(true);
                ZoomButton.interactable = false;
                HideScreen();
                PlayerPrefs.SetInt("adCounter", 0);

                Analytics.CustomEvent("unlockZoom", new Dictionary <string, object> {
                    { "size", PlayerPrefs.GetInt("size") }
                });
            }
        });
    }