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