parsing error CS8025
im trying to make a melee system and i ran across a parsing error i know that it has somthing to do with " } " but i cant find whats wrong (because im just a nooby :p)
You need to close your if statement, your function, and your public class.
So at the end of line 17 press enter to get to the next line and add a curly bracket. Press enter again and add another curly bracket and finally press enter again and add a third curly bracket.
Answer by Zoogyburger · Mar 03, 2016 at 08:26 PM
You have to make sure all your brackets are enclosed. You just can't
public class Script : MonoBehaviour {
Animator anim;
void Start () {
anim = GetComponent<Animator>();
}
because only the void start has a closing bracket and not the public class. Either you have two many curly brackets, or not enough of them.
Answer by skyplex111 · Mar 03, 2016 at 08:46 PM
i have tried with different locations more and less brackets and i still have the error
Are you coding in c# or javascript? Because Javascript doesn't use the "using UnityEngine" stuff at the top and c# doesn't use Functions. So your problem is that you have to keep to one coding language!
I use c# so yeah like i said im u beginner, big time :p
Well, Var and Function only works for Javascript. The c# version of these is public float and void. You should go and look through the manual and the learn pages on this site to get the hang of scripting.
Your answer
Follow this Question
Related Questions
error cs80525 parsing error i need help 1 Answer
Parsing error 1 Answer
Need help with cs8025 parsing error 1 Answer
CS8025 Parsing Error 0 Answers