function OnGUI() {
if (weapon >= 1)
code to hide gui button;
}
what do i put there to hide the gui button, on lower screen resolutions the buttons take up half the screen and they are only used once
function OnGUI() {
if (weapon >= 1)
code to hide gui button;
}
what do i put there to hide the gui button, on lower screen resolutions the buttons take up half the screen and they are only used once
How about
if(weapon < 1)
{
code to show GUI button
}
seeing as that’s basically how they work anyway!