Question by
LuxrayPlays · Mar 30, 2016 at 02:39 PM ·
error messageconfused
It says it's expecting an identifier, and that public is a keyword, but I don't know why!
So I'm starting to code this "Simon Says" game from scratch, so I decided to start with the random sequence, but this error pops up that makes no sense to me!
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
int[] order = new int[9];
order[0] = Random.Range(0, 3);
print(order[0]);
}
// Update is called once per frame
void Update () {
}
}
The error is
Identifier expected: `public' is a keyword
in Line 5. It's really weird... Could someone tell me why this is happening and how I could fix it?
Comment
it work fine with me double click the error to see which line exactly the error line 5 is ok .
Your answer
Follow this Question
Related Questions
plis help with this Error when try test game in unity remote Unity 5 (unity remote 5) 0 Answers
Error CS165 after Update 1 Answer
Hello. I'm getting this error message. (58,246) CS1525: Unexpected Symbol 'end-of-file' 2 Answers
Help with Error Code CS0019 2 Answers
Assertion failed: Invalid worldAABB. Object is too large or too far away from the origin. 2 Answers