Menu.cs 794 Bytes
Newer Older
Raphael committed
1 2 3
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
4
using Assets.Scripts.Utils;
Raphael committed
5 6 7 8 9

public class Menu : MonoBehaviour {

	// Use this for initialization
	void Start () {
10 11 12
		Screen.autorotateToLandscapeRight = true;
		Screen.autorotateToLandscapeLeft = true;
		Screen.orientation = ScreenOrientation.AutoRotation;
Raphael committed
13 14 15 16
	}
	
	// Update is called once per frame
	void Update () {
17
		BackButtonHelper.quitOnBack();	
Raphael committed
18 19
	}

PLN (Algolia) committed
20 21 22 23 24 25 26 27 28
	public void OnButtonPlayClicked()
	{
		SceneManager.LoadScene("Main");
	}

	public void OnButtonScoreClicked()
	{
		SceneManager.LoadScene("Scores");
	}
Naliwe GS committed
29 30 31 32 33

    public void OnButtonScoresClicked()
    {
        SceneManager.LoadScene("Scores");
    }
34 35 36 37 38 39 40

	public void OnButtonInfoClicked()
	{
		Application.OpenURL("http://2016.igem.org/Team:Ionis_Paris");
	}

}