Search Unity

Assets/Death Floor.cs(10,8): error CS1519: Unexpected symbol `void' in class, struct, or interface m

Discussion in 'Scripting' started by turtlestargameing, Oct 30, 2018.

  1. turtlestargameing

    turtlestargameing

    Joined:
    Oct 30, 2018
    Posts:
    1
    I am new to coding and I was trying to make a death point so if the player goes out of it they get sent back to the spawn point and I am getting this error:

    Assets/Death Floor.cs(10,8): error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration

    any way to fix?
     

    Attached Files:

  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    You can see the red squiggly line where you forgot a semicolon.
     
  3. Deleted User

    Deleted User

    Guest

    Also the name of your script should be DeathPoint not Death Floor. The names of the script and the class must be identical.