게임 시작 작업 수정
This commit is contained in:
parent
807b289f2d
commit
0d3ac9a0ba
|
|
@ -1,9 +1,21 @@
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class StoryPrefab : MonoBehaviour
|
public class StoryPrefab : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] TMP_Text storyText;
|
[SerializeField] TMP_Text storyText;
|
||||||
|
[SerializeField] Button button;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
//임시 작업 Set에서 정보를 처리하게 만들기
|
||||||
|
Set();
|
||||||
|
}
|
||||||
|
public void Set()
|
||||||
|
{
|
||||||
|
button.onClick.AddListener(GameCtrl.Instance.StartPlay);
|
||||||
|
}
|
||||||
public void StoryButton()
|
public void StoryButton()
|
||||||
{
|
{
|
||||||
Debug.Log(storyText.text);
|
Debug.Log(storyText.text);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ RectTransform:
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1076649358208843570}
|
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_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
|
|
@ -148,6 +148,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
storyText: {fileID: 6122948490513045963}
|
storyText: {fileID: 6122948490513045963}
|
||||||
|
button: {fileID: 7407443869202666565}
|
||||||
--- !u!1 &5511528505370174996
|
--- !u!1 &5511528505370174996
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue