@@ -18,8 +18,8 @@ public class CollectionItemPicker<TItemType> : IList<TItemType>, IEquatable<ILis
1818 [ SerializeField , FormerlySerializedAs ( "cachedIndirectReferences" ) ]
1919 private List < CollectionItemIndirectReference < TItemType > > indirectReferences = new ( ) ;
2020
21- public event Action < TItemType > OnItemTypeAddedEvent ;
22- public event Action < TItemType > OnItemTypeRemovedEvent ;
21+ public event Action < TItemType > OnItemAddedEvent ;
22+ public event Action < TItemType > OnItemRemovedEvent ;
2323 public event Action OnChangedEvent ;
2424
2525 private bool isDirty = true ;
@@ -202,7 +202,7 @@ public void Add(TItemType item)
202202
203203 indirectReferences . Add ( new CollectionItemIndirectReference < TItemType > ( item ) ) ;
204204 isDirty = true ;
205- OnItemTypeAddedEvent ? . Invoke ( item ) ;
205+ OnItemAddedEvent ? . Invoke ( item ) ;
206206 OnChangedEvent ? . Invoke ( ) ;
207207 }
208208
@@ -263,7 +263,7 @@ public bool Remove(TItemType item)
263263 {
264264 isDirty = true ;
265265 OnChangedEvent ? . Invoke ( ) ;
266- OnItemTypeRemovedEvent ? . Invoke ( removedItem . Ref ) ;
266+ OnItemRemovedEvent ? . Invoke ( removedItem . Ref ) ;
267267 }
268268
269269 return removed ;
@@ -296,7 +296,7 @@ public void RemoveAt(int index)
296296 indirectReferences . RemoveAt ( index ) ;
297297 isDirty = true ;
298298 OnChangedEvent ? . Invoke ( ) ;
299- OnItemTypeRemovedEvent ? . Invoke ( removedItem . Ref ) ;
299+ OnItemRemovedEvent ? . Invoke ( removedItem . Ref ) ;
300300 }
301301
302302 public TItemType this [ int index ]
0 commit comments