Exemplo n.º 1
0
    public void ContinueScreenFn()
    {
        pointerUp();
        //    if (Application.internetReachability != NetworkReachability.NotReachable)
        //    {
        //        if (showPhotoAd == 1)
        //        {
        //            showPhotoAd = 5;
        //            InterstitialAdScene sm2 = GameObject.FindObjectOfType(typeof(InterstitialAdScene)) as InterstitialAdScene;
        //            sm2.ShowInterstitial();
        //        }

        //    }
        ContinueScreen.SetActive(true);
    }
Exemplo n.º 2
0
    public void continueTheGame()
    {
        ContinueScreen.SetActive(false);
        GameObject p    = GameObject.FindGameObjectWithTag("Player");
        float      diff = p.transform.position.y - lazer.transform.position.y;

        if (diff < 5)
        {
            float off = p.transform.position.y - 5;
            if (off < -12)
            {
                lazer.transform.position = new Vector3(0f, -12.5f, -1.8f);
            }
            else
            {
                lazer.transform.position = new Vector3(0f, off, -1.8f);
            }
        }


        player pum = GameObject.FindObjectOfType(typeof(player)) as player;

        pum.continueGame();
    }