24 lines
457 B
C#
24 lines
457 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class StoryPrefab : MonoBehaviour
|
|
{
|
|
[SerializeField] TMP_Text storyText;
|
|
[SerializeField] Button button;
|
|
|
|
private void Awake()
|
|
{
|
|
//임시 작업 Set에서 정보를 처리하게 만들기
|
|
Set();
|
|
}
|
|
public void Set()
|
|
{
|
|
button.onClick.AddListener(GameCtrl.Instance.StartPlay);
|
|
}
|
|
public void StoryButton()
|
|
{
|
|
Debug.Log(storyText.text);
|
|
}
|
|
}
|