Transition from Lore to Main and vice versa
Bottom left buttons transitions to the lore page and vice versa
This commit is contained in:
11
Assets/MainMenuUI/LoreToMainMenu.cs
Normal file
11
Assets/MainMenuUI/LoreToMainMenu.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class LoreToMainMenu : MonoBehaviour
|
||||
{
|
||||
// Method to load the "mainMenu" scene
|
||||
public void LoadMainMenu()
|
||||
{
|
||||
SceneManager.LoadScene("mainMenu");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user