I get error:
error cs1001 identifier expected
I don’t understand I copied it word for word.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using.UnityEngine.SceneManagement;
public class win : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Player")
{
//Debug.Log("you win");
SceneManager.LoadScene(0);
}
}
}