Пример #1
0
 public void InvokeInteraction(GroundSlamPayload groundSlamPayload)
 {
     if (onInteract != null && EvaluateConditionals())
     {
         onInteract.Invoke(groundSlamPayload);
     }
 }
Пример #2
0
    public bool ReceiveGroundSlamInteraction(GroundSlamPayload payload)
    {
        bool hasInteraction = false;

        foreach (var interaction in Interactions)
        {
            if (interaction is GroundSlamInteraction)
            {
                (interaction as GroundSlamInteraction).InvokeInteraction(payload);
                hasInteraction = true;
            }
        }

        return(hasInteraction);
    }