public void OnClick() { player.SetCurrentAttack(attack); if (attack is PlayerMelee || (attack is PlayerSpell && (attack as PlayerSpell).type != SpellType.Areal)) { description.text = $"Use {attack.name} on:"; } else { description.text = $"You used {attack.name}"; } }