Advertisement
AnomalousUnderdog

Untitled

Mar 2nd, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function OnCollisionEnter(collision : Collision)
  2. {
  3.     Debug.Log("name of object collided: " + collision.gameObject.name + " tag of object: " + collision.gameObject.tag);
  4.  
  5.     if (collision.gameObject.tag == "Player")
  6.     {
  7.         Application.LoadLevel("The Palace of Orithalian");
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement