Exemplo n.º 1
0
    public void Open(Menu value) //打开value编号的窗口,关闭其它窗口
    {
        int total = menu.Length;

        for (int i = 0; i < total; i++)
        {
            currentMenu      = menu[i];
            currentMenuLabel = value;
            if (currentMenu.label == value)
            {
                currentMenu.Open();
            }
            else if (currentMenu.gameObject.activeSelf)
            {
                currentMenu.Close();
            }
        }
    }
Exemplo n.º 2
0
 public void Close()
 {
     currentMenu.Close();
 }