public void Process(IEvent @event)
 {
     @event.Accept(this._visitor);
 }
Exemple #2
0
 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));
 }