using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class LootSpawner : MonoBehaviour { public List groups = new List(); } [Serializable] public struct LootGroup { [Range(0f, 100f)] public float chance; public List loots; }