22 lines
487 B
C#
22 lines
487 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class StartGame : MonoBehaviour
|
|
{
|
|
public Button thisBtn;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
thisBtn = GetComponent<Button>();
|
|
thisBtn.onClick.AddListener(HandleClick);
|
|
}
|
|
|
|
private void HandleClick()
|
|
{
|
|
SceneManager.LoadSceneAsync(1, LoadSceneMode.Single);
|
|
}
|
|
}
|