Advertisement
Jeff_is_a_Human

Menu

Aug 1st, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class Menu : MonoBehaviour {
  7.  
  8.     void Start()
  9.     {
  10.         Cursor.lockState = CursorLockMode.None;
  11.         Cursor.visible = true;
  12.     }
  13.     public void PlayGame(string GameScene)
  14.     {
  15.         SceneManager.LoadScene(GameScene);
  16.     }
  17.     public void Options(string Options)
  18.     {
  19.         SceneManager.LoadScene(Options);
  20.     }
  21.     public void Credits(string Credits)
  22.     {
  23.         SceneManager.LoadScene(Credits);
  24.     }
  25.     public void QuitGame()
  26.     {
  27.         Application.Quit();
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement