Exemple #1
0
 protected void RegistBindable <TItem>(Bindable <TItem[]> bindable) where TItem : T
 {
     // Add time-tag into blueprint container
     bindable.BindArrayChanged(addItems =>
     {
         foreach (var obj in addItems)
         {
             AddBlueprintFor(obj);
         }
     }, removedItems =>
     {
         foreach (var obj in removedItems)
         {
             RemoveBlueprintFor(obj);
         }
     }, true);
 }