public void InvokeInteraction(RollIntoPayload rollIntoPayload)
 {
     if (onInteract != null && EvaluateConditionals())
     {
         onInteract.Invoke(rollIntoPayload);
     }
 }
Exemplo n.º 2
0
    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);
    }