_xiaofang/xiaofang/Assets/Script/scheduled_excercise/LoadScene.cs
2024-11-25 16:33:54 +08:00

38 lines
708 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class LoadScene : MonoBehaviour
{
public Button nextBtn;
public Button yesBtn;
// Start is called before the first frame update
void Start()
{
nextBtn.onClick.AddListener(OnClickNextBtn);
yesBtn.onClick.AddListener(OnClickYesBtn);
}
private void OnClickYesBtn()
{
//这里写应用场景的代码逻辑
}
public void OnClickNextBtn()
{
SceneManager.LoadScene("Schedule_a_walkthrough");
}
// Update is called once per frame
void Update()
{
}
}