gather-and-defend/Assets/Editor/DatabaseEditor.cs

23 lines
418 B
C#

using System.Linq;
using UnityEditor;
using UnityEngine;
using System.IO;
using System.Collections.Generic;
[CustomEditor(typeof(Database))]
public class DatabaseEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if (GUILayout.Button("fetch assets"))
{
var targ = target as Database;
targ.FetchDatabase();
}
}
}