public override bool Handle(Core.InteractionEvent e) { if (!e.forwardTo) { return(false); } e.forwardTo.Trigger(e.Forward(to, Receiver)); return(true); }
public bool Handle(Core.InteractionEvent e) { if (!e.forwardTo) { return(false); } e.forwardTo.Trigger(e.Forward(to, gameObject)); return(true); }
public override bool Handle(Core.InteractionEvent e) { var receiver = Receiver.GetComponent <InteractionReceiver>(); if (!receiver) { Debug.LogWarning($"There is no receiver on the interaction {Receiver.name}"); return(false); } e.kind = to; receiver.Trigger(e); return(true); }
public bool Handle(Core.InteractionEvent e) { receive?.Invoke(e.sender); return(true); }