32 lines
617 B
C#
32 lines
617 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Back : MonoBehaviour
|
|
{
|
|
public void OnBackPressed()
|
|
{
|
|
SceneNavigationManager sceneManager = FindFirstObjectByType<SceneNavigationManager>();
|
|
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()
|
|
{
|
|
|
|
}
|
|
}
|