using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MuHua { /// /// 数据预制件 /// public abstract class DataPrefab : MonoBehaviour where T : Data { /// 关联的数据 protected T value; /// 关联的数据 public virtual T Value => value; /// 更新可视化内容 public virtual void UpdateVisual(T value) => this.value = value; } }