[HOTFIX] 기보 버튼 연결 및 로그인 화면 생성
This commit is contained in:
parent
6fb69afb79
commit
4329e217d6
@ -34,4 +34,9 @@ public class MainPanelButtonController : MonoBehaviour
|
||||
|
||||
GameManager.Instance.panelManager.OpenShopPanel(shopItems);
|
||||
}
|
||||
|
||||
public void OpenReplayPanelClick()
|
||||
{
|
||||
GameManager.Instance.panelManager.OpenReplayPanel();
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ public class SigninPanelController : MonoBehaviour
|
||||
|
||||
NetworkManager.Instance.Signin(signinData, (signinResult) =>
|
||||
{
|
||||
mainPanel = gameObject.GetComponent<MainPanelManager>();
|
||||
Destroy(gameObject);
|
||||
|
||||
// 유저 정보 저장
|
||||
|
@ -19,6 +19,7 @@ public class PanelManager : MonoBehaviour
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
SetCanvas();
|
||||
// Prefabs 폴더에서 모든 패널 프리팹 로드
|
||||
GameObject[] prefabs = Resources.LoadAll<GameObject>("Prefabs/Panels");
|
||||
|
||||
@ -30,7 +31,7 @@ public class PanelManager : MonoBehaviour
|
||||
Debug.Log($"총 {panelPrefabs.Count}개의 패널이 로드됨.");
|
||||
}
|
||||
|
||||
void Start()
|
||||
private void SetCanvas()
|
||||
{
|
||||
if (_canvas == null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user