2019-08-04 14:36:42 +02:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
2019-08-14 16:17:48 +02:00
|
|
|
|
namespace Saltosion.OneWeapon.GUI {
|
2019-08-04 14:36:42 +02:00
|
|
|
|
public class MainMenuController : MonoBehaviour {
|
|
|
|
|
public int PlayGameScene;
|
|
|
|
|
public int OptionsMenuScene;
|
|
|
|
|
|
|
|
|
|
public void PlayGame() {
|
|
|
|
|
SceneManager.LoadScene(PlayGameScene);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OpenOptions() {
|
|
|
|
|
SceneManager.LoadScene(OptionsMenuScene);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Exit() {
|
|
|
|
|
Application.Quit(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|