Skip to content
Permalink
6d0fa95a4b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (17 sloc) 408 Bytes
using UnityEngine;
using System.Collections;
public class ClickThroughMenu : MonoBehaviour {
public Texture backgroundTexture;
public int nextScene;
// Use this for initialization
void Start () {
}
void OnGUI(){
GUI.DrawTexture (new Rect(0,0,Screen.width,Screen.height), backgroundTexture);
}
void Update () {
if(Input.GetMouseButtonDown(0)){
Application.LoadLevel (nextScene);
}
}
}