2020-01-17 22:09:54 -05:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
2020-01-27 21:34:58 -05:00
|
|
|
using UnityEngine.EventSystems;
|
2020-01-17 22:09:54 -05:00
|
|
|
|
|
|
|
|
public class MainMenu : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
|
2020-01-27 21:34:58 -05:00
|
|
|
public GameObject menuFirstButton;
|
|
|
|
|
public GameObject skinsFirstButton;
|
|
|
|
|
public GameObject optionsFirstButton;
|
|
|
|
|
public GameObject skinsBackButton;
|
|
|
|
|
public GameObject optionsBackButton;
|
|
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(null);
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(menuFirstButton);
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-17 22:09:54 -05:00
|
|
|
public void PlayGame()
|
|
|
|
|
{
|
|
|
|
|
SceneManager.LoadScene("Hub World", LoadSceneMode.Single);
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-27 21:34:58 -05:00
|
|
|
public void Skins()
|
|
|
|
|
{
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(null);
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(skinsFirstButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void BackSkins()
|
|
|
|
|
{
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(null);
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(skinsBackButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Options()
|
|
|
|
|
{
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(null);
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(optionsFirstButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void BackOptions()
|
|
|
|
|
{
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(null);
|
|
|
|
|
EventSystem.current.SetSelectedGameObject(optionsBackButton);
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-17 22:09:54 -05:00
|
|
|
public void QuitGame()
|
|
|
|
|
{
|
|
|
|
|
Application.Quit();
|
|
|
|
|
Debug.Log("QUIT");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|