Exemplo n.º 1
0
 public void Update()
 {
     if (homeCanvas.enabled == true && Input.GetKeyUp("escape"))
     {
         SimpleAds ad = new SimpleAds();
         ad.ShowAd();
         Application.Quit();
     }
     ;
 }
Exemplo n.º 2
0
    public void HomeClick()
    {
        GameManager g = GameObject.Find("GameManager").GetComponent <GameManager>();

        g.PlayHomeClickAnimations();

        SimpleAds ad = new SimpleAds();

        ad.ShowAd();
    }
Exemplo n.º 3
0
 public void Back()
 {
     FindObjectOfType <AudioCreater>().PlayClick();
     FindObjectOfType <AudioCreater>().ResumeTheme();
     if (PlayerPrefs.GetInt("levelReached") < SceneManager.GetActiveScene().buildIndex - 1)
     {
         PlayerPrefs.SetInt("levelReached", SceneManager.GetActiveScene().buildIndex - 1);
     }
     SimpleAds.RequestInterstitial();
     SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 18);
 }
Exemplo n.º 4
0
    IEnumerator NextLevel()
    {
        yield return(new WaitForSeconds(timeDelay));

        if (PlayerPrefs.GetInt("levelReached") < SceneManager.GetActiveScene().buildIndex - 1)
        {
            PlayerPrefs.SetInt("levelReached", SceneManager.GetActiveScene().buildIndex - 1);
        }

        if (Random.Range(0, 2) == 0)
        {
            SimpleAds.RequestInterstitial();
        }
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
    }
Exemplo n.º 5
0
 private void Awake()
 {
     SimpleAds.InitialiseAds();
 }
Exemplo n.º 6
0
 private void Start()
 {
     SimpleAds.InitialiseAds();
 }