using System.Collections; using System.Collections.Generic; using UnityEngine; public class Lance : Weapon { protected override void Revise() { description = "长而锋利的武器,穿刺效果好,能造成较高的肉体伤害"; weaponName = "长枪"; manaCovery = 3; } public override void LevelUp(Character character) { character.money -= CheckLevelUpCost(); if(level < 10) { level += 1; basicDamage += 2; dexAddtion += 0.07f; strAddition += 0.04f; } } public override int CheckLevelUpCost() { return 5; } }