I have been trying to fix this problem for hours and the only sulotion I can come up with makes unity crash.
Crashes:
if(weapons[x+1].unlocked)
currGun = x;
↧