mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-22 23:39:58 +08:00
43 lines
702 B
C#
43 lines
702 B
C#
namespace UIWidgets
|
|
{
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ScrollBlock item.
|
|
/// </summary>
|
|
public class ScrollBlockItem : MonoBehaviour, IMovableToCache
|
|
{
|
|
/// <summary>
|
|
/// Index of the item.
|
|
/// </summary>
|
|
[NonSerialized]
|
|
public int Index;
|
|
|
|
/// <summary>
|
|
/// Text adapter.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public TextAdapter Text;
|
|
|
|
/// <summary>
|
|
/// Owner.
|
|
/// </summary>
|
|
[NonSerialized]
|
|
public ScrollBlockBase Owner;
|
|
|
|
/// <summary>
|
|
/// Called when data changed.
|
|
/// </summary>
|
|
public virtual void DataChanged()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Process move to cache event.
|
|
/// </summary>
|
|
public virtual void MovedToCache()
|
|
{
|
|
}
|
|
}
|
|
} |