
Above is the ball count script (Ballcount.cs) for my Pachinko Machine game. This script allows for only 5 balls to be dropped per level in my game. The variable ‘5’ can be altered at any time to change the set limit for a number of balls per level.

Above is the ball count script (Ballcount.cs) for my Pachinko Machine game. This script allows for only 5 balls to be dropped per level in my game. The variable ‘5’ can be altered at any time to change the set limit for a number of balls per level.
Script was wrote in NotePad++ because my PC, at the time of writing this script, was going through a large update and I couldn’t therefore access Unity to write the script so I had to use my laptop which doesn’t have Unity downloaded onto it.
LikeLike