Help! CS8025: Parsing Error pic included
I tried putting an open bracket above the red underline error and closing it in a few places but the error remains! :|
Please help
when posting, please include the actual script and complete error message.
you're more likely to get help that way...
Answer by Landern · Aug 15, 2016 at 05:40 PM
Would have been so much better to include the actual text rather then a freaking screen shot that i would have to hand type out so you get the basics.
In your case you're forgetting the class definition which would go after(generally, but not always the case) the using statements:
using UnityEngine;
using System.Collections;
// You're missing this and the curly braces.
public class SomeClassNameAndJunk : MonoBehaviour
{
public Camera camera;
public floot speed = 5;
// and the rest of your code.
}
Answer by Jessespike · Aug 15, 2016 at 05:43 PM
C# scripts use classes.
using UnityEngine;
using System.Collections;
public class YoYo : MonoBehaviour {
// Put variables and function inside of class
}
Your answer
Follow this Question
Related Questions
Parsing error 0 Answers
please fix parsing error 1 Answer
Parsing error cs8025 C# 0 Answers
CS8025 Parsing Error 0 Answers
can anyone find my parsing error? 1 Answer