using UnityEngine;

public class Publisher : MonoBehaviour
{
    public GameEvent onButtonPressGameEvent;
    public IntGameEvent onButtonPressIntEvent;

    void Update()
    {
        // When any key is pressed, raise both GameEvent assets
        if (Input.anyKeyDown)
        {
            onButtonPressGameEvent.Raise();
            onButtonPressIntEvent.Raise(42);
        }
    }
}
