using UnityEngine;
using System.Collections;
public class StartUI : MonoBehaviour {
public GUISkin customGUISkin;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI() {
if (customGUISkin) {
Application.LoadLevel("one");
}
}
}
My code.
I want it to load level one when you click the customGUISkin but it loads it automatically. Thanks