Exemplo n.º 1
0
 void Start()
 {
     GameControll.isGameOver = false;
     GameControll.isPause    = false;
     keo1.SetActive(false);
     keo2.SetActive(false);
     //panelGameOver.SetActive(false);
     //panelPause.SetActive(false);
     txtStart = GameObject.Find("txtStart").GetComponent <UnityEngine.UI.Text>();
     target.SetActive(false);
     txtStart.text = "";
     if (isrestart)
     {
         StartCoroutine(start(0f));
     }
     else
     {
         StartCoroutine(start(1.45f));
     }
     if (GoogleAdmob.bannerView != null)
     {
         GoogleAdmob.bannerView.Hide();
     }
     if (GoogleAdmob.interstitial != null)
     {
         GoogleAdmob.ShowInterstitial();
     }
 }
Exemplo n.º 2
0
    void Start()
    {
        Screen.SetResolution(1280, 720, true);
        Application.LoadLevel("LoadingScene");
        GoogleAdmob.RequestInterstitial();

        //VariableSystem.AddDiamond(1000);
    }
 void Start()
 {
     //Money = 1000;
     gameState = GameStates.Menu;
     SoundManager();
     GoogleAdmob.RequestBanner();
     GoogleAdmob.RequestInterstitial();
 }
Exemplo n.º 4
0
 void Start()
 {
     StartCoroutine(start());
     GoogleAdmob.RequestBanner();
     GoogleAdmob.RequestInterstitial();
     if (GoogleAdmob.bannerView != null)
     {
         GoogleAdmob.bannerView.Show();
     }
 }
 public void Pause()
 {
     if (gameState == GameStates.Pause)
     {
         gameState = GameStates.Playing;
     }
     else
     {
         if (GoogleAdmob.interstitial.IsLoaded())
         {
             GoogleAdmob.ShowInterstitial();
         }
         gameState = GameStates.Pause;
     }
     //Debug.Log("Broadcast requested, No of Subscribers = " + subscribers.Count);
     foreach (var subscriber in subscribers)
     {
         subscriber();
     }
 }
Exemplo n.º 6
0
    void Start()
    {
        AudioControl.DPlayMusicInstance("Nhac menu", true, true);
        if (GoogleAdmob.interstitial.IsLoaded())
        {
            GoogleAdmob.ShowInterstitial();
        }
        GoogleAdmob.RequestBanner();
#if UNITY_ANDROID && !UNITY_EDITOR
        if (CheckPackage.check())
        {
            Debug.Log("---------------APP HACK CMNR--------------------");
            MobilePlugin.getInstance().ShowToast("HACK CMNR");
            Application.Quit();
        }
        else
        {
            //MobilePlugin.getInstance().ShowToast("-------------APP KO HACK------------");
        }
#endif
    }