- Home /
Question by
Henrys-Studio · Jul 09, 2021 at 06:41 PM ·
mathscene-switching
Unity isn't adding number the way I want it to.
I have a program that is a remake of flappy bird. I use a quad behind (which is to the left of the player as obstacles are moving right to left) player to count how many obstacles it made though. Since there will be an obstacle to the top and one to the bottom yet they come at the exact same time, so I just tell it to
private void OnPlayerSurvived() => IOHandler.Survived += add;
add is a float of 0.5f. However, it still increments the score counter the same amount as the time the scene has loaded. My hypnosis are:
- the counter object is not removed during reload.
- the whole scene wasn't removed
Comment