Advertisement
johnnygoodguy2000

MainMenu.cs

Apr 8th, 2024 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | Gaming | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine.SceneManagement;
  4. using UnityEngine;
  5.  
  6.  
  7. public class MainMenu : MonoBehaviour
  8. {
  9.     public string playGameLevel;
  10.     public void PlayGame()
  11.     {
  12.        
  13.        SceneManager.LoadScene(playGameLevel);
  14.     }
  15.  
  16.     public void QuitGame()
  17.     {
  18.         Application.Quit();
  19.     }
  20. }
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement