📅  最后修改于: 2022-03-11 14:49:20.244000             🧑  作者: Mango
using UnityEngine;
using UnityEngine.EventSystems;
public class MainMenu : MonoBehaviour
{
public EventSystem eventSystem;
public void SetSelected(GameObject setSelected)
{
eventSystem.SetSelectedGameObject(setSelected, null);
}
}