Hello everyone so far i was able to do most stuff with out bothering you all but this have me, maybe because im a newb but anyway.
Here it is.
I have an array of strings, lets say like this:
public string[] weapons = {"Weapon1", "Weapon2"}
And i have a string variable asigned
Like this
public string weaponselected = "weapon1";
So what i want to do is the following,
If player press some button the weaponselected string changes to a value stored on the array. I know the input getkey button stuff but how to select a value from the array?
Also, how to add values to the array, say weapon3 or if its already there like weapon2 how to make the input not select weapon2 until someother variable lets say a bool is true?
Hope i made my self clear, english is not my first lenguage, and, im very bad at it i believe XD