AlicizaX/Client/Assets/Scripts/Hotfix/GameLogic/UI/TestScrollViewHolder.cs

20 lines
407 B
C#
Raw Normal View History

2025-12-01 16:46:28 +08:00
using System.Collections;
using System.Collections.Generic;
using AlicizaX.UI;
2025-12-26 14:23:01 +08:00
using TMPro;
2025-12-01 16:46:28 +08:00
using UnityEngine;
2025-12-26 14:23:01 +08:00
using UnityEngine.Serialization;
2025-12-01 16:46:28 +08:00
public class TestScrollViewHolder : ViewHolder
{
2025-12-26 14:23:01 +08:00
[SerializeField] private TextMeshProUGUI text;
2025-12-01 16:46:28 +08:00
public override void BindViewData<T>(T data)
{
2025-12-26 14:23:01 +08:00
if (data is TestData testData)
{
text.text = testData.Name;
}
2025-12-01 16:46:28 +08:00
}
}