Run-and-capture/Assets/Scripts/TimerHelperEditor.cs
2022-01-13 18:56:24 +03:00

21 lines
460 B
C#

using UnityEditor;
using UnityEngine;
#if UNITY_EDITOR
namespace DefaultNamespace
{
[CustomEditor(typeof(TimerHelper))]
public class TimerHelperEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
var timerHelper = (TimerHelper)target;
if (GUILayout.Button("SetScale"))
{
timerHelper.SetTimerScale();
}
}
}
}
#endif