Пример #1
0
    /// <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);
    }
Пример #2
0
 public static void HidePersonPanel()
 {
     PersonPanelGo.SetActive(false);
 }