- Home /
This question was
closed Nov 30, 2014 at 09:22 AM by
Graham-Dunnett for the following reason:
Duplicate Question
Question by
JackFranklin96 · Nov 30, 2014 at 09:22 AM ·
error-messagecs8025
Error code: CS8025: Parsing error
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();
}
Comment
Follow this Question
Related Questions
Error in script? 1 Answer
Assets/Scripts/PlayerController.cs(22,25): error CS8025: Parsing error 0 Answers
Windows 8 store app errors (999+) 1 Answer
4.3 - Errors jump to the wrong line numbers 1 Answer
error launching game 1 Answer