I don’t know how to explain it, so I’ll give an example: I have a game and I’m at level 1 (for example) and I used 3 bullets, but when I go to level two I have all the bullets again, I would like to know how I can get through of levels without restarting the quantities of bullets and keeping the ones I had when I finished the previous level.
You can make the bullet variable static:
public static int bullets;
If you want to save them use PlayerPrefs:
// saving the bullets
PlayerPrefs.SetInt("bullets", bullets);
// loading the bullets
bullets = PlayerPrefs.GetInt("bullets");