/// <summary> /// 获得基础属性的经验 /// </summary> /// <param name="attr"></param> /// <param name="count"></param> public void IncreaseBasicAttributeExp(BasicAttributeType attr, int count) { switch (attr) { case BasicAttributeType.Force: this.Force.GainExp(count); break; case BasicAttributeType.Aglie: this.Agile.GainExp(count); break; case BasicAttributeType.Constitution: this.Constitution.GainExp(count); break; case BasicAttributeType.Fortune: this.Fortune.GainExp(count); break; } DungeonManager.Ins.RefreshUI(); }
public BasicAttribute(BasicAttributeType type, int initLv) { this.type = type; this.currentLv = initLv; this.currentExp = 0; }