38 lines
708 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|