So i made a Question in Questions tab but its awayting moderator like 2 hours now and iam stuck in one place
so the problem is i have primary and secondary weapons
public int currentweaponprimary = 0;
public int currentweaponsecondary = 0;
but i need them to be active one at a time like this
if (Input.GetButton ("1"))
{
currentweaponprimary.enabled = true ;
currentweaponsecondary = false ;
}
if (Input.GetButton ("2"))
{
currentweaponprimary.enabled = false ;
currentweaponsecondary = true;
}
this wount work i know it because the int need to be bools for them to be false or true this is just an example of what i would like and i cant figure out a code that would work like this ?