MyBook/Assets/Scripts/OnePageEnd.cs
2025-03-17 17:38:32 +08:00

25 lines
442 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class OnePageEnd : MonoBehaviour
{
public Button btnEnd;
// Start is called before the first frame update
void Start()
{
btnEnd.onClick.AddListener(OnBbtnEndClick);
}
// Update is called once per frame
void Update()
{
}
private void OnBbtnEndClick()
{
SceneManager.LoadScene(0);
}
}