Open-sourced some code
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MenuSystem {
|
||||
class Quit : MenuOption {
|
||||
override public void Execute() {
|
||||
Application.Quit();
|
||||
Debug.Log("Quit called");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace MenuSystem {
|
||||
class StartGame : MenuOption {
|
||||
override public void Execute() {
|
||||
SceneManager.LoadScene("Gameplay");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user