게임 시작 작업 수정

This commit is contained in:
김판돌 2024-03-26 21:34:57 +09:00
parent 807b289f2d
commit 0d3ac9a0ba
2 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,21 @@
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);

View File

@ -27,7 +27,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1076649358208843570}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@ -148,6 +148,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
storyText: {fileID: 6122948490513045963}
button: {fileID: 7407443869202666565}
--- !u!1 &5511528505370174996
GameObject:
m_ObjectHideFlags: 0