using UnityEngine; using UnityEngine.SceneManagement; public class MainScript : MonoBehaviour { public GameObject PanelGame; public GameObject PausePanel; // Update is called once per frame void Update() { // Tambahkan logika update di sini jika diperlukan } public void ButtonPause() { if (PanelGame != null) PanelGame.SetActive(false); if (PausePanel != null) PausePanel.SetActive(true); } public void ButtonBack(string sceneName) { SceneManager.LoadScene(sceneName); } }