I am watching a YouTube tutorial series (Unity C# Beginner Tutorial - Methods (Part 03) - YouTube) In the video the person types the following code :
using UnityEngine;
using System.Collections;
public class Demo : MonoBehaviour
{
public int health;
void Start();
{
Print("Player Health is: " + health)
}
}
They compile the code wth no errors however when i try to compile it i get the following errors:
Assets/Scripts/Demo.cs(9,5): error CS1519: Unexpected symbol `{' in class, struct, or interface member declaration
Assets/Scripts/Demo.cs(10,32): error CS1519: Unexpected symbol `Player Health is: ' in class, struct, or interface member declaration
Assets/Scripts/Demo.cs(10,42): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
Assets/Scripts/Demo.cs(13,1): error CS8025: Parsing error
I would like to know why I get these errors and they do not and how to fix them, I am using visual studio as my editor if that makes any difference (which I don’t see how it could).