evelynshilosky

MainMenu - Part 31

Feb 2nd, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using UnityEngine.SceneManagement;
  6.  
  7. public class MainMenu : MonoBehaviour
  8. {
  9.  
  10.     public Button LoadGameBTN;
  11.  
  12.     public void NewGame()
  13.     {
  14.         SceneManager.LoadScene("GameScene");
  15.     }
  16.  
  17.     public void ExitGame()
  18.     {
  19.         Debug.Log("Quitting Game");
  20.         Application.Quit();
  21.     }
  22.  
  23.  
  24. }
  25.  
Add Comment
Please, Sign In to add comment