18 lines
357 B
C#
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();
|
|
}
|
|
}
|
|
}
|