private void OnClick() { if (m_GameEvent != null) { m_GameEvent.Raise(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); ShowValueField(); if (GUILayout.Button("Raise")) { gameEvent.Raise(value); } }