Example #1
0
    public override void OnInspectorGUI()
    {
        GameEventSO gameEvent = (GameEventSO)target;

        if (GUILayout.Button("Raise event"))
        {
            gameEvent.Raise();
        }
    }
Example #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        eventSO = (GameEventSO)target;

        if (GUILayout.Button("Raise event"))
        {
            eventSO.Raise();
        }
    }