using System.Collections; using System.Collections.Generic; using UnityEngine; public class Sword : Weapon { protected override void Revise() { description = "一把保养得很好的长剑,拥有不错的穿刺与打击能力"; weaponName = "长剑"; manaCovery = 2; } public override void LevelUp(Character character) { character.money -= CheckLevelUpCost(); if(level < 10) { level += 1; strAddition += 0.08f; dexAddtion += 0.04f; basicDamage += 3; } } public override int CheckLevelUpCost() { return 5; } }