feat: 로비UI 변경점 적용
This commit is contained in:
@@ -32,7 +32,7 @@ namespace TON
|
||||
private void Start()
|
||||
{
|
||||
SetCharacterData();
|
||||
SetStageData();
|
||||
// SetStageData();
|
||||
}
|
||||
|
||||
private void SetCharacterData()
|
||||
@@ -50,6 +50,9 @@ namespace TON
|
||||
characterCritical.text = $"{player.critical}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 스테이지를 1개로 변경하여 해당 메소드 사용하지 않음
|
||||
/// </summary>
|
||||
private void SetStageData()
|
||||
{
|
||||
if (stagePages.Count > 0)
|
||||
@@ -68,14 +71,14 @@ namespace TON
|
||||
GameObject stagePageObject = Instantiate(stagePagePrefab, stagePageGroup);
|
||||
LobbyUI_StagePage stagePage = stagePageObject.GetComponent<LobbyUI_StagePage>();
|
||||
stagePageObject.SetActive(true);
|
||||
stagePage.Initalize(stageId, i);
|
||||
// stagePage.Initalize(stageId, i);
|
||||
stagePages.Add(stagePage);
|
||||
}
|
||||
}
|
||||
|
||||
public void OnClickChangeStageButton()
|
||||
{
|
||||
// TODO: 스테이지 입장 popupUI 비활성화
|
||||
// 스테이지 입장 popupUI 비활성화
|
||||
stagePages.ForEach(page => page.GetComponent<LobbyUI_StagePage>().OnClickStageChangeButton());
|
||||
}
|
||||
|
||||
@@ -85,7 +88,8 @@ namespace TON
|
||||
GameObject currentSelectedGameObject = EventSystem.current.currentSelectedGameObject;
|
||||
LobbyUI_StagePage lobbyUI_StagePage = currentSelectedGameObject.GetComponentInParent<LobbyUI_StagePage>();
|
||||
|
||||
PlayerPrefs.SetString("StageId", lobbyUI_StagePage.stageId);
|
||||
// 강제로 스테이지 4맵을 사용하도록 적용
|
||||
PlayerPrefs.SetString("StageId", "STG004");
|
||||
lobbyUI_StagePage.OnClickStageButton();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace TON
|
||||
public class LobbyUI_StagePage : MonoBehaviour
|
||||
{
|
||||
public Button stageEntryButton;
|
||||
public TextMeshProUGUI stageTitle;
|
||||
// public TextMeshProUGUI stageTitle;
|
||||
public GameObject stageImage;
|
||||
public Transform starGroup;
|
||||
public StageStar starPrefab;
|
||||
@@ -24,7 +24,7 @@ namespace TON
|
||||
public string stageId;
|
||||
private SerializableDictionary<string, StageClearData> bestStageClearDict = new SerializableDictionary<string, StageClearData>();
|
||||
|
||||
public void Initalize(string stageId, int index)
|
||||
public void Initalize(string stageId)
|
||||
{
|
||||
this.stageId = stageId;
|
||||
|
||||
@@ -38,10 +38,13 @@ namespace TON
|
||||
stageClearData = bestStageClearDict.GetValueOrDefault(stageId, null);
|
||||
|
||||
SetStageImage();
|
||||
SetStageEntryInfo(index);
|
||||
stageTitle.text = $"stage {index + 1}";
|
||||
// SetStageEntryInfo(index);
|
||||
// stageTitle.text = $"stage {index + 1}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 스테이지 1개 축소 및 게임 장르 변경으로 아래 메소드 사용하지 않음음
|
||||
/// </summary>
|
||||
private void SetStageEntryInfo(int index)
|
||||
{
|
||||
if (stageClearData != null)
|
||||
|
||||
Reference in New Issue
Block a user