예제 #1
0
 //恢復角色狀態
 public void RecoveryState(RoleStateMemento memento)
 {
     this.vit = memento.Vitality;
     this.atk = memento.Attack;
     this.def = memento.Defense;
 }
예제 #2
0
 //恢復角色狀態
 public void RecoveryState(RoleStateMemento memento)
 {
     this.vit = memento.Vitality;
     this.atk = memento.Attack;
     this.def = memento.Defense;
 }