20 lines
409 B
C#
20 lines
409 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class UIAnswer : UIBase
|
|
{
|
|
public Button closeBtn;
|
|
|
|
DataItem2 data;
|
|
|
|
private void Awake()
|
|
{
|
|
closeBtn.onClick.AddListener(() => { UIManager.Instance.DestoryUI(UIType.UIAnswer); });
|
|
data = DataManager.Instance.currentQuitQuestion;
|
|
|
|
Debug.Log(data.title);
|
|
}
|
|
}
|