mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-09 10:55:17 -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");
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 992610a85a5cfc840b83ca187d0a06dc
|
||||
guid: a9402b1a96948474a8a65a8395afec5d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
@@ -1,10 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Quit : MonoBehaviour
|
||||
{
|
||||
public void Exit(){
|
||||
Application.Quit();
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class toCredits : MonoBehaviour
|
||||
{
|
||||
public void ToCredits(){
|
||||
SceneManager.LoadScene("Credits");
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a62a8ad6fc70a704cb8c7c644d08d3ee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user