using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Uiscript : MonoBehaviour { public GameObject mainmenu, setting, Play, Shop, Levelselection, CharacterSelection,Mode; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void MainmenuPanal() { mainmenu.SetActive(true); } public void SettingPanal() { setting.SetActive(true); mainmenu.SetActive(false); } public void Settingpanalcross() { setting.SetActive(false); mainmenu.SetActive(true); } public void Playpanal() { Play.SetActive(true); mainmenu.SetActive(false); } public void Modes() { Mode.SetActive(true); Play.SetActive(false); } public void modesCross() { Mode.SetActive(false); Play.SetActive(true); } public void levelselectionPanal() { Levelselection.SetActive(true); Mode.SetActive(false); } public void levelSelectionback() { Levelselection.SetActive(false); Mode.SetActive(true); } public void ShopPanal() { Shop.SetActive(true); Play.SetActive(false); } public void ShopPanalCross() { Shop.SetActive(false); Play.SetActive(true); } public void InfiniteMode() { SceneManager.LoadScene(1); } public void characterselectionPanal() { CharacterSelection.SetActive(true); Play.SetActive(false); } public void characterselectionPanalcross() { CharacterSelection.SetActive(false); Play.SetActive(true); } public void playBack() { mainmenu.SetActive(true); Play.SetActive(false); } public void quit() { Application.Quit(); } }