/// <summary> /// 显示个人面板 /// </summary> public static void ShowPersonPanel() { PersonPanelGo.SetActive(true); GameObject firstGo = GameObject.Find("Character"); Button[] buttons = PersonPanelGo.GetComponentsInChildren <Button>(); for (int i = 0; i < buttons.Length; i++) { buttons[i].interactable = true; } EventSystem.current.SetSelectedGameObject(firstGo); }
public static void HidePersonPanel() { PersonPanelGo.SetActive(false); }