2025-08-30 21:09:29 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class CanvasControl : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public static CanvasControl Ins;
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
Ins = this;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-01 07:07:58 +00:00
|
|
|
[SerializeField] private GameObject go_AlbumPanel, go_GamePanel, go_MainPanel, go_ShopPanel, go_TopPanel, go_BottomPanel;
|
2025-08-31 22:23:11 +00:00
|
|
|
[SerializeField] private GameObject go_Top_Moneys, go_Top_x, go_Bottom_LB, go_Bottom_RB;
|
2025-08-30 21:09:29 +00:00
|
|
|
|
|
|
|
|
public void Go_Shop()
|
|
|
|
|
{
|
|
|
|
|
go_AlbumPanel.SetActive(false);
|
2025-09-01 07:07:58 +00:00
|
|
|
go_GamePanel.SetActive(false);
|
2025-08-30 21:09:29 +00:00
|
|
|
go_MainPanel.SetActive(false);
|
|
|
|
|
|
|
|
|
|
go_ShopPanel.SetActive(true);
|
|
|
|
|
go_TopPanel.SetActive(true);
|
2025-08-31 22:23:11 +00:00
|
|
|
go_Top_x.SetActive(true);
|
|
|
|
|
|
2025-08-30 21:09:29 +00:00
|
|
|
go_BottomPanel.SetActive(true);
|
|
|
|
|
go_Bottom_LB.SetActive(false);
|
|
|
|
|
go_Bottom_RB.SetActive(false);
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-31 22:23:11 +00:00
|
|
|
public void Go_Album()
|
|
|
|
|
{
|
|
|
|
|
go_AlbumPanel.SetActive(true);
|
2025-09-01 07:07:58 +00:00
|
|
|
go_GamePanel.SetActive(false);
|
2025-08-31 22:23:11 +00:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-30 21:09:29 +00:00
|
|
|
public void Go_Main()
|
|
|
|
|
{
|
2025-08-31 22:23:11 +00:00
|
|
|
go_AlbumPanel.SetActive(false);
|
2025-09-01 07:07:58 +00:00
|
|
|
go_GamePanel.SetActive(true);
|
2025-08-31 22:23:11 +00:00
|
|
|
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);
|
2025-08-30 21:09:29 +00:00
|
|
|
|
2025-08-31 22:23:11 +00:00
|
|
|
go_BottomPanel.SetActive(false);
|
2025-08-30 21:09:29 +00:00
|
|
|
}
|
|
|
|
|
}
|