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