I have read a few different answers and read some of the wiki pertaining to what I need,
but i am still running into errors. I am trying to have it that when a person touches a door they will transition to the other scene which will be the interior of the house. I have the scene working and everything else has been tested and working. The only code issue I am running into is this script. Its throwing up errors for a keyword error parsing error and a unexpected symbol error. Thank you for any help and taking the time to look at this.
using UnityEngine;
using System.Collections;
public class SH2Enter : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "Player")
{
DontDestroyOnLoad(other.gameObject);
Application.LoadLevel("Next Level");
}
}
}
}