Advertisement
evelynshilosky

Lootable - Part 32

Feb 12th, 2024
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Lootable : MonoBehaviour
  6. {
  7.     public List<LootPossibility> possibleLoot;
  8.     public List<LootReceived> finalLoot;
  9.  
  10.     public bool wasLootCalculated;
  11. }
  12.  
  13. [System.Serializable]
  14. public class LootPossibility
  15. {
  16.     public GameObject item;
  17.     public int amountMin;
  18.     public int amountMax;
  19. }
  20.  
  21. [System.Serializable]
  22. public class LootReceived
  23. {
  24.     public GameObject item;
  25.     public int amount;
  26.  
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement