/// <summary> /// 恢复角色状态 /// </summary> /// <param name="memento"></param> public void RecoveryState(RoleMemento memento) { this.Vitality = memento.Vitality; this.Attack = memento.Attack; this.Defense = memento.Defense; }
public void RecoveryState(RoleMemento roleMemento) { _vitality = roleMemento.Vitality; _attack = roleMemento.Attack; _defense = roleMemento.Defense; }