HeavenStudio/Assets/Editor/TempoFinderButtonEditor.cs
2022-02-24 21:30:02 -07:00

21 lines
564 B
C#

using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using RhythmHeavenMania;
namespace RhythmHeavenMania.Editor
{
[CustomEditor(typeof(TempoFinderButton))]
public class TempoFinderButtonEditor : ButtonEditor
{
public override void OnInspectorGUI()
{
TempoFinderButton targetButton = (TempoFinderButton)target;
targetButton.tempoFinder = (TempoFinder)EditorGUILayout.ObjectField("Tempo Finder", targetButton.tempoFinder, typeof(TempoFinder), true);
base.OnInspectorGUI();
}
}
}