Example #1
0
    /*******************************************************************************************************/

    /// <summary>
    /// Performs the action if the condition is met.
    /// </summary>
    private void CheckPlayerTrigger(Player p)
    {
        if (condition.IsConditionMet(p))
        {
            foreach (var action in actions)
            {
                action.OnTrigger(p);
            }
        }
    }