Hi I can’t figure out the problem with this code can somebody please help ASAP.
using UnityEngine;
using System.Collections;
public class MenuPage : MonoBehaviour {
public int buttonHeight = 30;
public int buttonWidth = 100;
public int buttonPadding = 10;
public GUIStyle mystyle;
void OnGUI(){
int buttonSeparator = buttonHeight+buttonPadding;
int numberOfButtons = 3;
int groupHeight = numberOfButtons*buttonSeparator;
Rect groupRect = new Rect(320-buttonWidth/2, 240-groupHeight/2, buttonWidth, groupHeight);
GUI.BeginGroup(groupRect);
GUI.Button(new Rect(0,0*buttonSeparator,buttonWidth,buttonHeight), "Start", mystyle);
GUI.Button(new Rect(0,1*buttonSeparator,buttonWidth,buttonHeight), "Instructions", mystyle);
GUI.Button(new Rect(0,2*buttonSeparator,buttonWidth,buttonHeight), "Credits", mystyle);
GUI.EndGroup();
}