17 lines
337 B
C#
17 lines
337 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LootSpawner : MonoBehaviour
|
|
{
|
|
public List<LootGroup> groups = new List<LootGroup>();
|
|
}
|
|
|
|
[Serializable]
|
|
public struct LootGroup
|
|
{
|
|
[Range(0f, 100f)]
|
|
public float chance;
|
|
public List<LootItemScriptableObject> loots;
|
|
} |