public void GameOverWindow()
    {
        VisibleCanvas(false);
        if (select % 2 == 0)
        {
            CloseAll();
            if (ManagerAds.Ins.IsRewardVideoAvailable())
            {
                OpenAdsWindown();
            }
            else
            {
                WindownGameOVer.OpenWindow();
            }
        }
        else
        {
            Save_Game();
            ManagerAds.Ins.ShowInterstitial();
            GameController.instance.GamePause = true;
            GameController.instance.GameOver  = true;
            WindowAdsToContine.CloseWindow();
            WindownGameOVer.OpenWindow();
        }
        AutioControl.instance.GetAudio("Lose").Play();


        select++;
    }
Beispiel #2
0
    public void SelcetMode(int index)
    {
        AutioControl.instance.GetAudio("change").Play();
        switch (index)
        {
        case 1:
            Mode_1.OpenWindow();
            Mode_2.CloseWindow();
            Mode_3.CloseWindow();

            break;

        case 2:
            Mode_1.CloseWindow();
            Mode_2.OpenWindow();
            Mode_3.CloseWindow();
            break;

        case 3:
            Mode_1.CloseWindow();
            Mode_2.CloseWindow();
            Mode_3.OpenWindow();
            break;
        }
    }
Beispiel #3
0
 public void OpenAll()
 {
     Shop.OpenWindow();
     Lboard.OpenWindow();
     setting.OpenWindow();
     Changlegend.OpenWindow();
     Rate.OpenWindow();
 }
 public void OpenAdsWindown()
 {
     Save_Game();
     VisibleCanvas(false);
     AutioControl.instance.GetAudio("Lose").Play();
     WindowAdsToContine.OpenWindow();
     GameController.instance.GamePause = true;
     GameController.instance.GamePause = true;
 }
    public void PauseWindown()
    {
        if (GameController.instance.Game_Type != GAME_MODE_TYPE.MODE_3)
        {
            GameController.instance.GamePause = true;
            AutioControl.instance.Stop();
            Time.timeScale = 0;


            WindownPause.OpenWindow();
        }
        else
        {
            AutioControl.instance.Stop();
            Time.timeScale = 0;
            WindownPause.OpenWindow();
        }
    }
 public void OpenWindow(Windown window)
 {
     window.OpenWindow();
 }