Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Mission1 : MonoBehaviour {
  5.  
  6. void OnTriggerEnter2D(Collider2D other)
  7. {
  8. Debug.Log (other.gameObject.name);
  9. if (other.tag == "Player") {
  10. Application.LoadLevel ("Mission2Intro");
  11. Debug.Log ("Loading Mission2Intro");
  12. }
  13. }
  14.  
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement