diff --git a/Assets/KJM/ShopTest/MainPanelButtonController.cs b/Assets/KJM/ShopTest/MainPanelButtonController.cs index e517ca0..09ec09b 100644 --- a/Assets/KJM/ShopTest/MainPanelButtonController.cs +++ b/Assets/KJM/ShopTest/MainPanelButtonController.cs @@ -34,4 +34,9 @@ public class MainPanelButtonController : MonoBehaviour GameManager.Instance.panelManager.OpenShopPanel(shopItems); } + + public void OpenReplayPanelClick() + { + GameManager.Instance.panelManager.OpenReplayPanel(); + } } diff --git a/Assets/Script/Main/SigninPanelController.cs b/Assets/Script/Main/SigninPanelController.cs index 797c4a1..e39c391 100644 --- a/Assets/Script/Main/SigninPanelController.cs +++ b/Assets/Script/Main/SigninPanelController.cs @@ -55,6 +55,7 @@ public class SigninPanelController : MonoBehaviour NetworkManager.Instance.Signin(signinData, (signinResult) => { + mainPanel = gameObject.GetComponent(); Destroy(gameObject); // 유저 정보 저장 diff --git a/Assets/Script/UI/PanelController/PanelManager.cs b/Assets/Script/UI/PanelController/PanelManager.cs index 7dfde0e..ddf3806 100644 --- a/Assets/Script/UI/PanelController/PanelManager.cs +++ b/Assets/Script/UI/PanelController/PanelManager.cs @@ -19,6 +19,7 @@ public class PanelManager : MonoBehaviour private void Awake() { + SetCanvas(); // Prefabs 폴더에서 모든 패널 프리팹 로드 GameObject[] prefabs = Resources.LoadAll("Prefabs/Panels"); @@ -29,8 +30,8 @@ public class PanelManager : MonoBehaviour Debug.Log($"총 {panelPrefabs.Count}개의 패널이 로드됨."); } - - void Start() + + private void SetCanvas() { if (_canvas == null) {