|
Hello, I have a code for a menu system. I can't see what's wrong but it keeps telling me my first if statement is wrong it is expecting a variable not a type. Can anyone help me?
(comments are locked)
|
|
Try : if (GUI.Button(new Rect(10, 500, 500, 300), PlayButton)) {
(comments are locked)
|

@Noob-e is correct, C# needs initializers for any new object value. This includes a rect or vector3 or what have you. Always make sure to add the 'new' keyword for new values.
That makes sense. Thank you