using System.Collections;
using System.Collections.Generic;
public class PanelManager : MonoBehaviour
[SerializeField] GameObject panel_First;
[SerializeField] GameObject panel_Second;
[SerializeField] GameObject panel_Third;
[SerializeField] GameObject panel_Fourth;
public void SwitchPanel(PanelOption nextpanel)
currentPanel.SetActive(false);
currentPanel = panel_First;
currentPanel = panel_Second;
currentPanel = panel_Third;
currentPanel = panel_Fourth;
currentPanel.SetActive(true);