Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class LoadLevelCollision : MonoBehaviour {
  5.  
  6. // Use this for initialization
  7. void Start () {
  8.  
  9.  
  10. }
  11.  
  12. // Update is called once per frame
  13. void Update () {
  14.  
  15. }
  16. public void OnCollisionEnter(Collider Other) {
  17. Application.LoadLevel(numberOfScene);
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement