24 lines
572 B
C#
24 lines
572 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class MessageBoxController : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
|
|
this.transform.Find("back").GetComponent<Button>().onClick.AddListener(delegate
|
|
{
|
|
SceneManager.LoadScene("menu");
|
|
});
|
|
|
|
this.transform.Find("cancel").GetComponent<Button>().onClick.AddListener(delegate
|
|
{
|
|
this.gameObject.SetActive(false);
|
|
});
|
|
}
|
|
}
|