This question was
closed Oct 06, 2015 at 01:37 PM by
Knighty for the following reason:
The question is answered, right answer was accepted
Question by
Knighty · Oct 06, 2015 at 10:25 AM ·
c#c# tutorial
A namespace can only contain types and namespace declarations..(39,14)
Hi all, I am new to C# and I am getting the above error.
My code is as follows (Line 39 is void state_door() { -
void state_door () {
text.text = "You go to open the door, as you turn the knob, you realise it is locked from" +
"the outside.. Strange.\n\n"+
"Press 'R' to search your room.";
if (Input.GetKeyDown(KeyCode.R)) {
myState = States.room; }
}
Comment
Follow this Question
Related Questions
Create with Code 1.2 Pedal to the Metal: No MonoBehaviour scripts in the file 0 Answers
Question about understanding some tutorial code and transform.parent 1 Answer
Where can I learn C# 3 Answers
Time Management. Morning, noon and night. 2 Answers
Best way to create a currency converter in Unity with C# 0 Answers