Ejemplo n.º 1
0
    void CreateFree(MadRootNode root, MadLevelIcon icon)
    {
        var panel      = MadTransform.FindChild <MadPanel>(root.transform);
        var freeLayout = MadLevelFreeTool.CreateUnderPanel(panel);

        freeLayout.iconTemplate = icon;
        freeLayout.dirty        = true;
    }
Ejemplo n.º 2
0
        static void CreateFreeLayout()
        {
            var panel = MadPanel.UniqueOrNull();

            if (panel != null)
            {
                MadLevelFreeTool.CreateUnderPanel(panel);
            }
            else
            {
                ScriptableWizard.DisplayWizard <MadLevelFreeTool>("Create Free Layout", "Create");
            }
        }