private TextRenderer balanceText | Text showing the balance. |
private List<ShopInterfaceItem> currentCart | Cart entries currently shown. |
private int currentCartCost | Total price of the cart. |
private PlayerCustomizationHandler customizationHandler | Handler whose worn items make up the cart. |
private bool isBuying | True while a purchase is running, to block repeats. |
private BoolUnityEvent isBuyingEvent | Event raised with true when buying starts and false when it ends. |
private ShopInterfaceItem itemPrefab | Prefab for a cart entry. |
private Transform itemsParent | Parent for cart entries. |
private float itemsSpacing | Vertical gap between cart entries. |
private static Logger logger | NLog logger for this class. |
private PlayerCharacterCustomizationManager manager | Customization manager whose item events are watched. |
private Dictionary<uint, ShopItemDetailedForUser> mappedItems | Shop items by compressed SKU hash. |
private StringHandler purchaseFailedWithError | Event given the error text when a purchase fails. |
private AltaEvent successfullPurchase | Event raised when every cart item was bought. |
private TextRenderer totalCost | Text showing the cart total. |