- Home /
I can't see the problem.
Unity come up with these following errors in this simple script:
error cs1525 unexpected symbol '}'
error cs8025 parsing error
Comment
this is the script
using UnityEngine;
using System.Collections;
public class tutorial : $$anonymous$$onoBehaviour
{
public int health;
void Start ()
{
print ("Player health: " + health)
}
}
Best Answer
Answer by Baste · Nov 11, 2014 at 10:16 AM
Two problems:
you're missing a semicolon after the method call.
print isn't a method, you're looking for Debug.Log
Yes, print is a static function of $$anonymous$$onobehaviour and is just a wrapper for Debug.Log.
Your answer
Follow this Question
Related Questions
whats wrong with this code for a menu 3 Answers
Unexpected Symbol and Parsing Errors 0 Answers
PLEASE HELP!!!! using BergZurgArcades guide having error! 5 Answers
C# Errors CS1525,CS8025 2 Answers
Unable To Find Solution For Errors 1 Answer