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
Go down
Posts : 329
Points : 2204
Rep : 43
Join date : 2014-03-12
Age : 18
Location : Italy
View user profilehttp://masterdevelopers.altervista.org/

Trigger zone (change scene)

on Sat Jun 28, 2014 12:19 pm
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
using UnityEngine;
using System.Collections;

public class LoadLevel : MonoBehaviour {

void OnTriggerEnter(Collider other) {
      AutoFade.LoadLevel("Main Menu" ,1,1,Color.black);
Back to top
Permissions in this forum:
You cannot reply to topics in this forum