using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainPanelController : MonoBehaviour
{
     public GameObject mainpanel; // Assign your panel in the inspector
    // Start is called before the first frame update
    void Start()
    {
        
    }

    public void TogglePanel()
    {
        // If the panel is active, hide it. Otherwise, show it.
        mainpanel.SetActive(!mainpanel.activeSelf);
    }
}
