Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnCollisionEnter(collision : Collision)
- {
- Debug.Log("name of object collided: " + collision.gameObject.name + " tag of object: " + collision.gameObject.tag);
- if (collision.gameObject.tag == "Player")
- {
- Application.LoadLevel("The Palace of Orithalian");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement