Permalink
Switch branches/tags
Nothing to show
Find file Copy path
021fbc5 Jul 10, 2014
1 contributor

Users who have contributed to this file

34 lines (23 sloc) 476 Bytes
using UnityEngine;
using System.Collections;
public class Clicktocontinue : MonoBehaviour {
public string scene;
private bool loadLock = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(0) && !loadLock)
{
LoadScene();
}
}
void LoadScene()
{
if (scene == null)
return;
loadLock = true;
Application.LoadLevel(scene);
}
}