Level Loader

//Asign the script to a button and specify the level to load. Make sure the scenes have been added in the build settings of the project and that the levels are in correct order.

using UnityEngine;
using System.Collections;

public class LevelLoader : MonoBehaviour {

 GameObject menu_Canvas;
 GameObject settings_Canvas;
 GameObject dataHandler;
 GameObject F458;
 GameObject R8;
 GameObject SLS;

 void Start () {
 menu_Canvas = GameObject.Find ("MainMenu_Canvas");
 settings_Canvas = GameObject.Find ("Settings_Canvas");
 dataHandler = GameObject.Find("DataHandler");

 settings_Canvas.SetActive (false);
 menu_Canvas.SetActive (true);
 public void LoadLevel (int a) {

 Application.LoadLevel (a);

 public void Quit () {

 Application.Quit ();

 public void loadMenu () {

 menu_Canvas.SetActive (true);
 settings_Canvas.SetActive (false);

 public void loadSettings () {

 menu_Canvas.SetActive (false);
 settings_Canvas.SetActive (true);
 public void deleteDataHandler () {

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s