using UnityEngine;
using UnityEngine.Events;

// Note: We do not reference scriptable object events in this class.
// Scriptable object event references are set in the unity editor.
public class Publisher : MonoBehaviour
{
    public UnityEvent buttonPressNoArugmentEvent;
    public UnityEvent<int> buttonPressIntEvent;

    void Update()
    {
        // When any key is pressed, raise the GameEvent asset
        if (Input.anyKeyDown)
        {
            buttonPressNoArugmentEvent.Invoke();
            buttonPressIntEvent.Invoke(42);
        }
    }
}
