Hello! I am having an error in my C# scene changing script. I have tried everything possible, but it keeps saying that “void” is unexpected. Here is my code:
using UnityEngine.SceneManagement;
using UnityEngine;
void OnCollisionEnter(Collision collision);
{
if (collision.gameObject.tag == "Player")
{
SceneManager.LoadScene ("SceneName");
}
}
Please help me figure this out! I am currently learning C# so I don’t know very much about it.
Thanks!