Lootbox

Container that holds randomized rewards, such as weapons, power-ups, coins and more. Inherits from Interactable and can be Free or Paid. Check CoinManager for more info.

You can find a Lootbox Prefab uner Cowsins/Prefabs/DragAndDropExtras

  • loot: Array that contains all the possible loot to be instantiated. On interact, a random item will be selected.

  • price: Price to unlock the Lootbox. Set to 0 for it to be Free.

  • delayToReceiveLoot: Specifies the time interval between opening the lootbox and receiving the loot.

  • spawnDistance: Distance to spawn the loot from the Lootbox Position

  • directionDependsOnPlayerPosition: If true, the loot will be instantiated in fron of the player always. Recommended to be true.

Last updated