using UnityEngine; public class CanvasControl : MonoBehaviour { public static CanvasControl Ins; private void Awake() { Ins = this; Go_Main(); } [SerializeField] private GameObject go_AlbumPanel, go_GamePanel, go_MainPanel, go_ShopPanel, go_TopPanel, go_BottomPanel; [SerializeField] private GameObject go_CollectionPanel; [SerializeField] private GameObject go_Top_Moneys, go_Top_x, go_Bottom_LB, go_Bottom_RB; [SerializeField] private GameObject go_StopEffect; public void Go_Shop() { go_AlbumPanel.SetActive(false); go_CollectionPanel.SetActive(false); go_GamePanel.SetActive(false); go_MainPanel.SetActive(false); go_ShopPanel.SetActive(true); go_TopPanel.SetActive(true); go_Top_x.SetActive(true); go_BottomPanel.SetActive(true); go_Bottom_LB.SetActive(false); go_Bottom_RB.SetActive(false); } public void Go_Album() { go_StopEffect.SetActive(false); // 무슨 버그야.. go_AlbumPanel.SetActive(true); go_CollectionPanel.SetActive(false); go_GamePanel.SetActive(false); go_MainPanel.SetActive(false); go_ShopPanel.SetActive(false); go_TopPanel.SetActive(true); go_Top_x.SetActive(true); go_BottomPanel.SetActive(false); go_Bottom_LB.SetActive(false); go_Bottom_RB.SetActive(false); } public void Go_Main() { if (go_CollectionPanel.activeInHierarchy) { Go_Album(); return; } go_AlbumPanel.SetActive(false); go_CollectionPanel.SetActive(false); go_GamePanel.SetActive(true); go_MainPanel.SetActive(true); go_ShopPanel.SetActive(false); go_TopPanel.SetActive(true); go_Top_Moneys.SetActive(true); go_Top_x.SetActive(false); go_BottomPanel.SetActive(true); go_Bottom_LB.SetActive(true); go_Bottom_RB.SetActive(true); } public void Go_Collection() { go_AlbumPanel.SetActive(false); go_CollectionPanel.SetActive(true); go_GamePanel.SetActive(false); go_MainPanel.SetActive(false); go_ShopPanel.SetActive(false); go_TopPanel.SetActive(true); go_Top_x.SetActive(true); go_BottomPanel.SetActive(false); go_Bottom_LB.SetActive(false); go_Bottom_RB.SetActive(false); } public void Go_HideUI() { go_Top_Moneys.SetActive(false); go_Top_x.SetActive(true); go_BottomPanel.SetActive(false); } }