using UnityEngine; using System.Collections; public class door_world : MonoBehaviour { // Use this for initialization void Start () { collider.isTrigger = true; } void Awake() { DontDestroyOnLoad(transform.gameObject); } void OnTriggerEnter(Collider other) { Application.LoadLevel("World"); } // Update is called once per frame void Update () { }