Example #1
0
        static void CreateBackground()
        {
            var freeLayout = GameObject.FindObjectOfType(typeof(MadLevelFreeLayout));

            if (freeLayout != null)
            {
                EditorUtility.DisplayDialog(
                    "Create Background",
                    "Free layout has different method of creating backgrounds (this is temporary and will be fixed in future versions). "
                    + "You should look for a 'Background Texture' field in the free layout inspector.", "OK");
                Selection.activeObject = freeLayout;
                return;
            }

            MadLevelBackgroundTool.ShowWindow();
        }
Example #2
0
 static void CreateBackground()
 {
     MadLevelBackgroundTool.ShowWindow();
 }