public void SetAreaClass(UnitClass unitClass) { switch (unitClass) { case UnitClass.Sword: areaOrb.SetOrbType(swordClassSprite); break; case UnitClass.Shield: areaOrb.SetOrbType(shieldClassSprite); break; case UnitClass.Lance: areaOrb.SetOrbType(lanceClassSprite); break; default: areaOrb.SetOrbType(null); break; } currentClass = unitClass; }