﻿#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public class OnwardVerify
{
    [MenuItem("ONWARD/Check scene for errors", false, -10)]
    public static void ShowWorkshopWindow()
    {
        try
        {
            Onward.CustomContent.EditorTools.ContentBuilder.VerifyAndPrepare();
        }
        catch (System.Exception e)
        {
            EditorUtility.DisplayDialog("Errors found :-(", e.Message, "OK");

            return;
        }

        EditorUtility.DisplayDialog("No errors :-)", "No errors have been found!", "OK");
    }
}
#endif