整合包

gameplay bundle has been imported together
This commit is contained in:
FloatGaming
2025-08-09 18:29:32 +08:00
parent e7962bf492
commit 1d818fa4eb
1654 changed files with 431813 additions and 103 deletions
+32
View File
@@ -0,0 +1,32 @@
/*
* FancyScrollView (https://github.com/setchi/FancyScrollView)
* Copyright (c) 2020 setchi
* Licensed under MIT (https://github.com/setchi/FancyScrollView/blob/master/LICENSE)
*/
using UnityEngine;
using System.Collections.Generic;
namespace FancyScrollView.Example01
{
class ScrollView : FancyScrollView<ItemData>
{
[SerializeField] Scroller scroller = default;
public Scroller Scroller => scroller;
[SerializeField] GameObject cellPrefab = default;
protected override GameObject CellPrefab => cellPrefab;
protected override void Initialize()
{
base.Initialize();
scroller.OnValueChanged(UpdatePosition);
}
public void UpdateData(IList<ItemData> items)
{
UpdateContents(items);
scroller.SetTotalCount(items.Count);
}
}
}