using Luneraria.Core; using UnityEngine; namespace Luneraria.View { /// /// What a unit looks like in U2 (only the six representative assets are imported): the boss /// is the Schlundkrone, heroes use the rigged Funkenlanze, every other unit the Kohlenbeißer /// (g01, parts combined into one mesh). Team rings and bars tell the sides apart, as in Godot. /// public sealed class LuneUnitLibrary : ScriptableObject { public GameObject Rigid; public GameObject Hero; public RuntimeAnimatorController HeroController; public GameObject Boss; public RuntimeAnimatorController BossController; public LuneMaterialSet Materials; public LuneGround Ground; public Mesh RingRound; public Mesh RingDiamond; public Mesh RingHexagon; public Mesh Quad; public Material[] TeamRing = new Material[3]; public Material HeroRing; public Material BarBack; public Material[] BarFill = new Material[3]; public Material[] Bolt = new Material[3]; public GameObject PrefabFor(LuneUnit unit, out RuntimeAnimatorController controller) { controller = null; if (unit.Kind == "boss") { controller = BossController; return Boss; } if (unit.Kind == "hero") { controller = HeroController; return Hero; } return Rigid; } } }