//恢复角色状态 public void RecoveryState(RoleStateMemento memento) { this.vit = memento.Vitality; this.atk = memento.Attack; this.def = memento.Defense; }
// 恢复角色状态 public void RecoveryState(RoleStateMemento memento) { this._vitality = memento.Vitality; this._attack = memento.Attack; this._defense = memento.Defense; }