I need help trying to input number's into the coding here is what I'm trying to do:
If you press the number one it will choose a weapon. If you press the number one again it will choose another weapon. The cycle continues as you keep pressing the number one. If you guys could show me what code could make this happen that would be awesome.
Here is what I got I am so lost
var projectile : GameObject;
function Start ()
{
}
function Update ()
{
if(Input.GetButtonUp("1"))
{
print("axe");
}
}
Replies