Beispiel #1
0
 public void InvokeInteraction(GroundSlamPayload groundSlamPayload)
 {
     if (onInteract != null && EvaluateConditionals())
     {
         onInteract.Invoke(groundSlamPayload);
     }
 }
Beispiel #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);
    }