using System.Collections; using System.Collections.Generic; using UnityEngine; public class Menu : MonoBehaviour { public GameObject map_3D; public GameObject switchRoute; public void OpenSwitchRoute( bool state) { map_3D.SetActive(state); switchRoute.SetActive(state); } }