docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Payout

    Represents a set of items to grant for a successful transaction.

    Inheritance
    object
    Payout
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public class Payout

    Constructors

    Name Description
    Payout(List<OutputItem>, PayoutEvent)

    Constructor for setting up a payout with multiple outputs.

    Payout(OutputItem, PayoutEvent)

    Constructor for setting up a payout with a single output. Many payouts will be simple 1 items so this constructor allows easy setup for that without need of an external list.

    Payout(Payout)

    Copy constructor for setting up a new payout based off of an existing one.

    Methods

    Name Description
    GetPayoutItems()

    Array of OutputItems to be paid out.

    GetPayoutItems(List<OutputItem>)

    Puts all payout items into the given list.

    InvokePayoutEvent()

    Simply invokes the payout event. This ensures other classes will only be able to trigger the event and not be able to do things like clear it.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)