Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » FREE Project Downloads & Recources » Scripts » Trigger zone (change scene)

Trigger zone (change scene)

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Trigger zone (change scene) on Sat Jun 28, 2014 12:19 pm

developer23


Moderator
Moderator
Hello guy! today i made this amazing script!
1- create a cube
2-remove mesh renderer
3-add "Trigger" at box collider
4-add this script at the cube.
5-change the scene name
Code:
using UnityEngine;
using System.Collections;

public class LoadLevel : MonoBehaviour {

void OnTriggerEnter(Collider other) {
      AutoFade.LoadLevel("Main Menu" ,1,1,Color.black);
   }
}

View user profile http://masterdevelopers.altervista.org/

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum