コード例 #1
0
 public void Set(IInventoryNotifier notifier)
 {
     _Unbind();
     _Notifier              = notifier;
     _Notifier.AddEvent    += _Add;
     _Notifier.RemoveEvent += _Remove;
 }
コード例 #2
0
 public void Set(IInventoryNotifier notifier)
 {
     _Unbind();
     _Notifier = notifier;
     _Notifier.AddEvent += _Add;
     _Notifier.RemoveEvent += _Remove;
 }
コード例 #3
0
 private void _Unbind()
 {
     if (_Notifier != null)
     {
         _Notifier.AddEvent    -= _Add;
         _Notifier.RemoveEvent -= _Remove;
         _Notifier              = null;
     }
 }
コード例 #4
0
 private void _Unbind()
 {
     if (_Notifier != null)
     {
         _Notifier.AddEvent -= _Add;
         _Notifier.RemoveEvent -= _Remove;
         _Notifier = null;
     }
 }