예제 #1
0
        public override bool Handle(Core.InteractionEvent e)
        {
            if (!e.forwardTo)
            {
                return(false);
            }
            e.forwardTo.Trigger(e.Forward(to, Receiver));

            return(true);
        }
예제 #2
0
        public bool Handle(Core.InteractionEvent e)
        {
            if (!e.forwardTo)
            {
                return(false);
            }
            e.forwardTo.Trigger(e.Forward(to, gameObject));

            return(true);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public bool Handle(Core.InteractionEvent e)
 {
     receive?.Invoke(e.sender);
     return(true);
 }