Advertisement
lemansky

Untitled

Feb 28th, 2021
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class MenuScript: MonoBehaviour
  7. {
  8.     public void ButtonPlay()
  9.     {
  10.         //ако имате такава сцена
  11.         SceneManager.LoadScene("SampleScene");
  12.     }
  13.  
  14.     public void ButtonQuit()
  15.     {
  16.         Application.Quit();
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement