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)

Go down  Message [Page 1 of 1]

1 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);

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

Back to top  Message [Page 1 of 1]

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