private void DrawRaiseEvent() { ScriptableEventEditorGUI.DrawRaiseEventLabel(); GUI.enabled = scriptableEvent.ListenerCount > 0; GUILayout.BeginHorizontal(); argValue = DrawArgField(argValue); ScriptableEventEditorGUI.DrawRaiseButton(() => scriptableEvent.Raise(argValue) ); GUILayout.EndHorizontal(); GUI.enabled = true; }
private void DrawRaiseListener(int listenerIndex) { ScriptableEventEditorGUI.DrawRaiseButton(() => scriptableEvent.Raise(argValue, listenerIndex) ); }