/// <summary> /// Adds an action to run when this perk is refunded. /// </summary> /// <param name="refundAction">The action to run when this perk is refunded.</param> /// <returns>A perk builder with the configured options</returns> public PerkBuilder TriggerRefund(PerkTriggerPurchasedRefundedAction refundAction) { _activePerk.RefundedTriggers.Add(refundAction); return(this); }
/// <summary> /// Adds an action to run when this perk is purchased. /// </summary> /// <param name="purchaseAction">The action to run when this perk is purchased.</param> /// <returns>A perk builder with the configured options</returns> public PerkBuilder TriggerPurchase(PerkTriggerPurchasedRefundedAction purchaseAction) { _activePerk.PurchasedTriggers.Add(purchaseAction); return(this); }