Advertisement
Dieton

Menu

May 28th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | Gaming | 0 0
  1. using UnityEngine;
  2. using UnityEngine.SceneManagement;
  3.  
  4. namespace QuickStart
  5. {
  6.     public class Menu : MonoBehaviour
  7.     {
  8.         public void LoadScene(string levelName)
  9.         {
  10.             SceneManager.LoadScene(levelName);
  11.         }
  12.     }
  13. }
Tags: Unity mirror
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement