feat: 로비 불필요한 코드 정리

This commit is contained in:
aube.lee
2025-02-27 23:16:10 +09:00
parent 267f9bd2c4
commit 1f2e329d55
5 changed files with 2 additions and 1440 deletions

View File

@@ -45,19 +45,10 @@ namespace TON
characterCritical.text = $"{player.critical}";
}
public void OnClickStageButton()
{
// 스테이지 입장 UI 활성화
GameObject currentSelectedGameObject = EventSystem.current.currentSelectedGameObject;
LobbyUI_StagePage lobbyUI_StagePage = currentSelectedGameObject.GetComponentInParent<LobbyUI_StagePage>();
// 강제로 스테이지 4맵을 사용하도록 적용
PlayerPrefs.SetString("StageId", "STG004");
lobbyUI_StagePage.OnClickStageButton();
}
public void OnClickStagePlayButton()
{
PlayerPrefs.SetString("StageId", "STG004");
// 가지고 있는 하트가 없다면 입장 불가
if (HeartDataManager.Singleton.GetCurrentHearts() < 1)
{