using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; public class MainStore2 : MonoBehaviour{ public GameObject ButtonToToggleMenu; public GameObject MenuToToggle; // public GameObject OutsideMenuArea; Button button; // Button OutsideMenu_button; public GameObject[] OutsideMenu_gameObjects; // Array to hold the list of GameObjects void OnEnable(){ MenuToToggle.SetActive(false); // Get the Button component from the GameObject button = ButtonToToggleMenu.GetComponent