void DeleteProfile(string profile)
    {
        if (!CheckPlaying())
        {
            return;
        }

        if (EditorUtility.DisplayDialog(
                "Delete Profile " + profile + "?",
                "Are you sure you want to delete profile '" + profile + "'? This cannot be undone.",
                "Yes", "No"))
        {
            MadLevelProfile.UnregisterProfile(profile);
            selectedProfileIndex = 0;
        }
    }