I'm trying to make a top down game in which the player starts unarmed and picks up a gun. and i want it to be able to cycle back and fourth. and so when ever he picks up another gun you will be able to cycle between all 3. How would i go about doing that?
Example.
There are 3 Weapons in the game
You start with a Weapon ID Of 0
Then You Pickup a Weapon with the ID of 1 Then you are only able to cycle between those 2
Until
You Pickup a 3rd weapon. Then You Will be able to cycle through all 3 weapons.
You could say use an array. i already have one but if i cycle through it will give me all weapons.
Thanks!