using UnityEngine; using UnityEngine.SceneManagement; public class UIController : MonoBehaviour { public Animator optionsPanelAnim; public void ShowOptionsPanelButton() { optionsPanelAnim.gameObject.SetActive(!optionsPanelAnim.gameObject.activeSelf); } public void CloseOptionsPanelButton() { optionsPanelAnim.SetTrigger("IsOff"); Invoke("ShowOptionsPanelButton", 0.5f); } public void LoadSceneButton(string sceneName) { SceneManager.LoadScene(sceneName); } public void FullScreen() { Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen; } public void WindowedScreen() { Screen.fullScreenMode = FullScreenMode.Windowed; } public void QuitApp() { Application.Quit(); } }