mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-20 01:14:35 -05:00
Added Toggle Option to Use the MLAPI Relay
- Also cleaned up and merged title screen files into a single class
This commit is contained in:
23
Assets/Scripts/UI/Title/MainMenu.cs
Normal file
23
Assets/Scripts/UI/Title/MainMenu.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour {
|
||||
|
||||
public void OnOptionsClicked() {
|
||||
SceneManager.LoadScene("Options");
|
||||
}
|
||||
|
||||
public void OnControlsClicked() {
|
||||
SceneManager.LoadScene("Controls");
|
||||
}
|
||||
|
||||
public void OnQuitClicked() {
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
public void OnCreditsClicked() {
|
||||
SceneManager.LoadScene("Credits");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user