Main Menu Rules
Started, should be finished in fact 👍
This commit is contained in:
parent
9a67bd00aa
commit
97aa74cacb
26 changed files with 2020 additions and 1 deletions
36
Assets/Scripts/UI/Buttons.cs
Normal file
36
Assets/Scripts/UI/Buttons.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class Buttons : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void PlayGame()
|
||||
{
|
||||
this.gameObject.SetActive(false);
|
||||
GameObject.Find("Rules").SetActive(true);
|
||||
//GameManager.Instance.GoNextLevel();
|
||||
}
|
||||
|
||||
public void LaunchSettings()
|
||||
{
|
||||
this.gameObject.SetActive(false);
|
||||
GameObject.Find("Options").SetActive(true);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue