Background + Buttons
Added Background Image to Main Menu and added Buttons to enter or leave the game.
This commit is contained in:
11
Assets/Scenes/MenuToSample.cs
Normal file
11
Assets/Scenes/MenuToSample.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class SceneLoader : MonoBehaviour
|
||||
{
|
||||
// Method to load the "SampleScene"
|
||||
public void LoadSampleScene()
|
||||
{
|
||||
SceneManager.LoadScene("SampleScene");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user