19 lines
434 B
C#
19 lines
434 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class Scroll : MonoBehaviour
|
|
{
|
|
public Button btnInScroll;
|
|
public string loadSceneName;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
btnInScroll.onClick.AddListener(() => {
|
|
SceneManager.LoadScene(loadSceneName);
|
|
});
|
|
}
|
|
}
|