public void Process(IEvent @event) { @event.Accept(this._visitor); }
public void SetButtonEffect(IEvent gameEvent, PlayerHealth player) { Debug.Log("SetButtonEffect"); continueButton.GetComponent <UnityEngine.UI.Button>().onClick.AddListener(() => gameEvent.Accept(player)); declineButton.GetComponent <UnityEngine.UI.Button>().onClick.AddListener(() => gameEvent.Decline(player)); }