예제 #1
0
 public void Detach(IObserverBodyPart subject)
 {
     _subjects.Remove(subject);
 }
예제 #2
0
 public void Attach(IObserverBodyPart subject)
 {
     _subjects.Add(subject);
     subject.Update(this);
 }