public void InvokeInteraction(RollIntoPayload rollIntoPayload) { if (onInteract != null && EvaluateConditionals()) { onInteract.Invoke(rollIntoPayload); } }
public bool ReceiveRollIntoInteraction(RollIntoPayload rollIntoPayload) { bool hasInteraction = false; foreach (var interaction in Interactions) { if (interaction is RollIntoInteraction) { (interaction as RollIntoInteraction).InvokeInteraction(rollIntoPayload); hasInteraction = true; } } return(hasInteraction); }