feat: 스테이지 타이틀 데이터 매핑

This commit is contained in:
aube.lee
2025-02-16 19:52:24 +09:00
parent 6f9f18628c
commit 96495c42c6
2 changed files with 4 additions and 0 deletions

View File

@@ -645,6 +645,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
stageEntryButton: {fileID: 7881644893557345821} stageEntryButton: {fileID: 7881644893557345821}
stageTitle: {fileID: 5563710392318594705}
stageImage: {fileID: 8654573821297256642} stageImage: {fileID: 8654573821297256642}
starGroup: {fileID: 3135648780667157969} starGroup: {fileID: 3135648780667157969}
starPrefab: {fileID: 1094882719706695268} starPrefab: {fileID: 1094882719706695268}

View File

@@ -1,5 +1,6 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using TMPro;
using UnityEditor.SceneManagement; using UnityEditor.SceneManagement;
using UnityEngine; using UnityEngine;
using UnityEngine.Assertions; using UnityEngine.Assertions;
@@ -10,6 +11,7 @@ namespace TON
public class LobbyUI_StagePage : MonoBehaviour public class LobbyUI_StagePage : MonoBehaviour
{ {
public Button stageEntryButton; public Button stageEntryButton;
public TextMeshProUGUI stageTitle;
public GameObject stageImage; public GameObject stageImage;
public Transform starGroup; public Transform starGroup;
public StageStar starPrefab; public StageStar starPrefab;
@@ -37,6 +39,7 @@ namespace TON
SetStageImage(); SetStageImage();
SetStageEntryInfo(index); SetStageEntryInfo(index);
stageTitle.text = $"stage {index + 1}";
} }
private void SetStageEntryInfo(int index) private void SetStageEntryInfo(int index)