Пример #1
0
 private void Start()
 {
     if (PlayerPrefs.HasKey("HighScore"))
     {
         hiscore = PlayerPrefs.GetFloat("HighScore");
     }
     rigid = GetComponent <Rigidbody2D>();
     ballsPreview.parent.gameObject.SetActive(false);
     amountBallsLeft = amountBalls;
     UpdateText();
     Container.GenerateNewRow();
 }
Пример #2
0
 public void AllBallLanded()
 {
     isAllBallLanded  = true;
     ammountBallsLeft = amountBalls;
     blockContainer.GenerateNewRow();
     score++;
     UpdateText();
     ammountBallsText.gameObject.SetActive(true);
 }