Skip to content

Commit

Permalink
Fix a delgate
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruma-K committed Apr 29, 2023
1 parent e3237a7 commit 8e65665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/FancyCarouselView/Runtime/Scripts/CarouselCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -98,4 +98,4 @@ public override void UpdatePosition(float position)
OnPositionUpdated(position);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public delegate void CarouselCellVisibilityChangedDelegate<TData, TCell>(TCell c
/// </summary>
/// <typeparam name="TData"></typeparam>
/// <typeparam name="TCell"></typeparam>
public delegate void CarouselCellRefreshedDelegate<TData, TCell>(TCell cell)
public delegate void CarouselCellRefreshedDelegate<TData, TCell>(TCell cell, TData data)
where TCell : CarouselCell<TData, TCell>;
}
}

0 comments on commit 8e65665

Please sign in to comment.