예제 #1
0
    public AbstractMenuComposite createSubmenu(string name, List <AbstractMenuComposite> listOfButtons)
    {
        AbstractMenuComposite submenu = new SubMenu(name, button, canvas);

        if (listOfButtons != null && listOfButtons.Count != 0)
        {
            foreach (AbstractMenuComposite btn in listOfButtons)
            {
                submenu.AddComponent(btn);
            }
        }
        return(submenu);
    }