Unexpected Symbol Public

Hi i am new to unity and coding in general. I made this script so when the player hits the kill void the game will reset, I have this one bug though that I don’t know how to fix.

All help is highly appreciated!

:slight_smile:

You’re missing an opening bracket.

public class ExampleClass : MonoBehaviour
{ <—here
//fields, methods, properties, etc goes here.

} <—class closing bracket

The class is missing it’s curly braces.

Also, since you are new, use code tags Using code tags properly - Unity Engine - Unity Discussions and post code

Also your void.Reset.SetActive is probably not correct.

I suggest following some tutorials that Unity has to get a better grasp of the language and how Unity works.

Ok thank you both of you!

As a tip, unexpected symbol most often means something is wrong just before the symbol mentioned.