using UnityEngine; using System.Collections; public class menuController : MonoBehaviour { public GameObject settings; public GameObject credits; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void startNewGame(string level){ Application.LoadLevel (level); } public void exitGame(){ Application.Quit (); } public void openPanel(string Str_panel){ settings.SetActive (false); credits.SetActive (false); if (Str_panel == "settings") settings.SetActive (true); if (Str_panel == "credits") credits.SetActive (true); } public void closePanel(){ openPanel ("None"); } }