Hello everyone, I’m trying to change SCENE when the player passes by an object and it does not work. Does anyone know what the problem is?
using UnityEngine;
using System.Collections;
public class GoSceen : MonoBehaviour {
public bool alreadyPlayed = false;
void OnTriggerEnter()
{
if (!alreadyPlayed)
{
Application.LoadLevel("MironSinagog");
alreadyPlayed = true;
}
}
}