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