private void TouchFloor() { ballsController.ammountBallsLeft--; rigid.simulated = false; rigid.velocity = Vector2.zero; if (ballsController.ammountBallsLeft <= 0) { ballsController.AllBallLanded(); } }
private void TouchFloor() { ballsController.ammountBallsLeft--; //ammountBallsLeft--; if (!BallsController.Instance.firstBallLanded) { BallsController.Instance.firstBallLanded = true; rigid.velocity = Vector2.zero; rigid.simulated = false; } if (ballsController.ammountBallsLeft <= 0) { ballsController.AllBallLanded(); //AllBallLanded(); } }