This is my code for the GUI buttons
if (Gameplay == false) {
if (GUILayout.Button ("Play Easy")) {
Gameplay = true;
}
if (GUILayout.Button ("Play Medium")) {
Gameplay = true;
}
if (GUILayout.Button ("Play Hard")) {
Gameplay = true;
}
if (GUILayout.Button ("Play ASIAN")) {
Gameplay = true;
}
if (GUILayout.Button ("Quit")) {
Debug.Log ("Clicked Button");
}
}
What is meant to happen is when I press one of those buttons the GUI is meant to away, but what is odd, is I need to press one of the buttons 5 times before it will work and there are 5 buttons making me think the buttons are rendered 5 times, can some one please help? what have I done wrong?