26 lines
496 B
C#
26 lines
496 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class UITemp : MonoBehaviour
|
|
{
|
|
public Button btn;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
DataManager.Instance.NextScene = 0;
|
|
btn.onClick.AddListener(() =>
|
|
{
|
|
SceneManager.LoadScene(1);
|
|
});
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|