Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        MenuGenerator menuGenerator = (MenuGenerator)target;

        if (GUILayout.Button("Generate Menu"))
        {
            menuGenerator.CreateMenu();
        }
    }
Esempio n. 2
0
        // GET: Menu
        public PartialViewResult Index()
        {
            List <Menu> menus = MenuGenerator.CreateMenu();

            return(PartialView("Partials/_menu", menus));
        }