You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
876 B

using UnityEngine;
public class MainMenuControllerClient : MonoBehaviour
{
public GameObject MainMenu;
public GameObject HowToPlayMenu;
public GameObject HowToPlayMenu_inventory;
private void Awake ()
{
MainMenu.SetActive (true);
HowToPlayMenu.SetActive(false);
HowToPlayMenu_inventory.SetActive(false);
}
public void OnPlayClick ()
{
UnityEngine.SceneManagement.SceneManager.LoadScene ("LoginScreen");
}
public void OnHowToPlayClick ()
{
MainMenu.SetActive (false);
HowToPlayMenu.SetActive (true);
}
public void OnContinueClick()
{
HowToPlayMenu.SetActive(false);
HowToPlayMenu_inventory.SetActive(true);
}
public void OnBacktomainmenuClick()
{
HowToPlayMenu.SetActive(false);
HowToPlayMenu_inventory.SetActive(false);
MainMenu.SetActive(true);
}
}