diff --git a/Assets/FancyCarouselView/Runtime/Scripts/CarouselCell.cs b/Assets/FancyCarouselView/Runtime/Scripts/CarouselCell.cs index d94958e..c0f1b92 100644 --- a/Assets/FancyCarouselView/Runtime/Scripts/CarouselCell.cs +++ b/Assets/FancyCarouselView/Runtime/Scripts/CarouselCell.cs @@ -45,7 +45,7 @@ protected virtual void OnPositionUpdated(float position) public override void UpdateContent(TData itemData) { Refresh(itemData); - Context.CarouselCellRefreshedDelegate?.Invoke((TCell)this); + Context.CarouselCellRefreshedDelegate?.Invoke((TCell)this, itemData); } public override void SetVisible(bool visibility) @@ -98,4 +98,4 @@ public override void UpdatePosition(float position) OnPositionUpdated(position); } } -} \ No newline at end of file +} diff --git a/Assets/FancyCarouselView/Runtime/Scripts/CarouselViewDelegates.cs b/Assets/FancyCarouselView/Runtime/Scripts/CarouselViewDelegates.cs index f1c6092..9e3d868 100644 --- a/Assets/FancyCarouselView/Runtime/Scripts/CarouselViewDelegates.cs +++ b/Assets/FancyCarouselView/Runtime/Scripts/CarouselViewDelegates.cs @@ -31,6 +31,6 @@ public delegate void CarouselCellVisibilityChangedDelegate(TCell c /// /// /// - public delegate void CarouselCellRefreshedDelegate(TCell cell) + public delegate void CarouselCellRefreshedDelegate(TCell cell, TData data) where TCell : CarouselCell; -} \ No newline at end of file +}