Exemple #1
0
 public void ReturnBall()
 {
     ballsReady++;
     if (ballsReady == balls.Count)
     {
         blockSpawner.SpawnRowOfBlocks();
         CreateBall();
     }
 }
 internal void ReturnBall()
 {
     ballsReady++;
     if (ballsReady == ballList.Count)
     {
         print("ReturnBall");
         blockSpawner.SpawnRowOfBlocks();
         CreateBall();
         readyToLaunch = true;
     }
 }
Exemple #3
0
 public void ReturnBall()
 {
     ballsReady++;
     if (ballsReady == _balls.Count)
     {
         _uImanager.ChangeRounds();
         blockSpawner.SpawnRowOfBlocks();
         CreateBall();
         isCanShoot = true;
     }
 }
    public void ReturnBall()
    {
        ballsReady++;
        if (ballsReady == balls.Count)
        {
            int countBlock = GameObject.FindGameObjectsWithTag("block").Length;

            if (countBlock == 0)
            {
                //load scene
                //SceneManager.LoadScene("menu");
                PauseScreen.SetActive(true);
            }

            blockSpawner.SpawnRowOfBlocks();
            CreateBall();
        }
    }