update
This commit is contained in:
@@ -5,16 +5,35 @@ using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
public void PlayGame() {
|
||||
public GameObject MainMenuObj;
|
||||
public GameObject OptionsMenu;
|
||||
public GameObject VideoButton;
|
||||
|
||||
public void PlayGame()
|
||||
{
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
||||
}
|
||||
|
||||
public void QuitGame() {
|
||||
public void QuitGame()
|
||||
{
|
||||
Debug.Log("Application is quitting!!");
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
public void GoToMenu(){
|
||||
public void GoToMenu()
|
||||
{
|
||||
SceneManager.LoadScene("MainMenu");
|
||||
}
|
||||
|
||||
public void OptionMenu()
|
||||
{
|
||||
MainMenuObj.SetActive(false); //kikapcsolni a fomenu dolgokat
|
||||
OptionsMenu.SetActive(true); //bekapcsolni a beallitas menu dolgokat
|
||||
|
||||
//megvizsgalni hogy a platform szamitogep, es ha nem csak a hangerot lehessen allitani
|
||||
if (Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.OSXPlayer || Application.platform == RuntimePlatform.LinuxPlayer || Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.LinuxEditor)
|
||||
{
|
||||
VideoButton.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user