public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; payload = EditorGUILayout.IntField("Payload", payload); if (GUILayout.Button("Invoke")) { (target as IntEvent)?.Invoke(payload); } bindings.OnInspectorGUI(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; if (GUILayout.Button("Invoke")) { (target as GameEvent)?.Invoke(); } bindings.OnInspectorGUI(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; payload = (Level)EditorGUILayout.ObjectField(payload, typeof(Level), true); if (GUILayout.Button("Invoke")) { (target as LevelEvent)?.Invoke(payload); } bindings.OnInspectorGUI(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; go = (GameObject)EditorGUILayout.ObjectField(go, typeof(GameObject), true); if (GUILayout.Button("Invoke")) { (target as GameObjectEvent)?.Invoke(go); } bindings.OnInspectorGUI(); }