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.
 
 
 
 

42 lines
683 B

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");
}
}