21 lines
460 B
C#
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 |