using UnityEngine; public class CanvasControl : MonoBehaviour { public static CanvasControl Ins; private void Awake() { Ins = this; } [SerializeField] private GameObject go_AlbumPanel, go_MainPanel, go_ShopPanel, go_TopPanel, go_BottomPanel; [SerializeField] private GameObject go_Top_Moneys, go_Top_x, go_Bottom_LB, go_Bottom_RB; public void Go_Shop() { go_AlbumPanel.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_AlbumPanel.SetActive(true); 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() { go_AlbumPanel.SetActive(false); 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_HideUI() { go_Top_Moneys.SetActive(false); go_Top_x.SetActive(true); go_BottomPanel.SetActive(false); } }