Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class StartGame : MonoBehaviour {
- bool Splash;
- // Use this for initialization
- void Start () {
- Splash = true;
- }
- // Update is called once per frame
- void Update () {
- if ((Input.GetMouseButtonDown (0) || Input.GetMouseButtonDown (1) || Input.GetMouseButtonDown (2)) && Splash) {
- Splash = false;
- Application.LoadLevel ("Scene1");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement