Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Mission1 : MonoBehaviour {
- void OnTriggerEnter2D(Collider2D other)
- {
- Debug.Log (other.gameObject.name);
- if (other.tag == "Player") {
- Application.LoadLevel ("Mission2Intro");
- Debug.Log ("Loading Mission2Intro");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement