49 lines
1.0 KiB
C#
49 lines
1.0 KiB
C#
using UnityEngine;
|
|
|
|
namespace UI
|
|
{
|
|
public class MainMenuUIController : MonoBehaviour
|
|
{
|
|
public GameObject startGameButton;
|
|
public GameObject continueButton;
|
|
public GameObject settingsButton;
|
|
public GameObject quitButton;
|
|
|
|
|
|
public GameObject settingsPanel;
|
|
|
|
public GameObject multiplayerPanel;
|
|
// public GameObject NewGamePanel;
|
|
|
|
|
|
public void OnClick_StartGame()
|
|
{
|
|
}
|
|
|
|
public void OnClick_Continue()
|
|
{
|
|
}
|
|
|
|
|
|
public void OnClick_Exit()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
|
|
public void OnClick_SettingsPanel()
|
|
{
|
|
if (settingsPanel.activeSelf)
|
|
settingsPanel.SetActive(false);
|
|
else
|
|
settingsPanel.SetActive(true);
|
|
}
|
|
|
|
public void OnClick_Multiplayer()
|
|
{
|
|
if (multiplayerPanel.activeSelf)
|
|
multiplayerPanel.SetActive(false);
|
|
else
|
|
multiplayerPanel.SetActive(true);
|
|
}
|
|
}
|
|
} |