using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class BackButton : MonoBehaviour { [Header("Target Scene")] public string targetSceneName = "TitleScreen"; [Header("Button Reference")] public Button backButton; private void Awake() { // If no button is assigned, try to find it on this GameObject if (backButton == null) { backButton = GetComponent