Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class StartGame : MonoBehaviour {
  5.  
  6. bool Splash;
  7. // Use this for initialization
  8. void Start () {
  9.  
  10. Splash = true;
  11. }
  12.  
  13. // Update is called once per frame
  14. void Update () {
  15. if ((Input.GetMouseButtonDown (0) || Input.GetMouseButtonDown (1) || Input.GetMouseButtonDown (2)) && Splash) {
  16. Splash = false;
  17. Application.LoadLevel ("Scene1");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement