using Sirenix.OdinInspector; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [Serializable] public class Damage { public int value; public static Type[] damageTypes = Type.all; [ValueDropdown("damageTypes")] public Type type; [Serializable] public class Type { private string name; private Type(string name) { this.name = name; } public static Type normal = new("normal"); public static Type poison = new("poison"); public static Type[] all = new Type[] { normal, poison }; public override string ToString() { return name; } } }