Ejemplo n.º 1
0
    public void ShowFinish()
    {
        Debugs.LogBlue(" finish game");
        for (int i = 0; i < 3; i++)
        {
            currentPiece.transform.GetChild(i).GetComponent <SpriteRenderer>().sprite = null;
        }
        StopMoveVertical();

        countNextPiece = 0;
        countPiece     = 0;
        for (int i = 0; i < 12; i++)
        {
            for (int j = 0; j < 8; j++)
            {
                matrix[i, j]          = 0;
                listObjectBreak[i, j] = null;
                LeanPool.Despawn(matrixGameOject[i, j]);
                matrixGameOject[i, j] = null;
            }
        }
        BOL_Battle_Screen.instance.SelfDestruction();
        BOL_MainControl_Offline.instance.Back2LastScene();
        //StartCoroutine(CountDownStart());
    }
Ejemplo n.º 2
0
 public void Back2LastScene()
 {
     if (instance.currentScreen != null)
     {
         instance.currentScreen.Hide();
         instance.currentScreen.ResetData();
         instance.currentScreen = null;
     }
     Debugs.LogBlue(typeUI.ToString());
     instance.currentScreen = GetScreen(typeUI);
     currentScreen.Show();
     currentScreen.InitData();
 }
Ejemplo n.º 3
0
 public override void InitData()
 {
     base.InitData();
     BOL_Battle_Screen.instance.SelfDestruction();
     BOL_MainControl_Offline.instance.BattleScene.SetActive(false);
     BOL_MainControl_Offline.instance.PanelGame.SetActive(false);
     myLastType = UIType.home;
     if (MainControlArcade.instance != null)
     {
         MainControlArcade.instance.SelfDestruction();
     }
     BOL_MainControl_Offline.instance.typeUI = UIType.home;
     Debugs.LogBlue(BOL_MainControl_Offline.instance.typeUI.ToString());
     for (int i = 0; i < listHeroChoice.Count; i++)
     {
         listHeroChoice[i].transform.GetChild(0).GetChild(0).gameObject.SetActive(!GameInformation.instance.listHeroInfo[i].autoUnlockAtFirst);
     }
 }