Pedro Sangue3 Gomes 3fe65ec877 first commit
2019-12-02 22:36:04 +00:00

18 lines
357 B
C#

using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor(typeof(DebugEvent))]
public class DebugEventRaiser : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
DebugEvent e = (DebugEvent)target;
if (GUILayout.Button("Raise"))
{
e.Raise();
}
}
}