public override void OnUse(CharacterCard toCard, string skillAppendData) { JsonData skillData = JsonMapper.ToObject(skillAppendData); int damage = Convert.ToInt32(skillData["damage"].ToString()); int energy = Convert.ToInt32(skillData["energy"].ToString()); toCard.ExpendEnergy(energy);//消耗能量 toCard.GetDamage(damage);//造成伤害 }