using System.Collections; using System.Collections.Generic; using UnityEngine; public class Back : MonoBehaviour { public void OnBackPressed() { SceneNavigationManager sceneManager = FindFirstObjectByType(); if (sceneManager != null) { sceneManager.GoBack(); } else { Debug.LogError("SceneNavigationManager tidak ditemukan!"); } } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }