public void SetGridIdx(int idx, Vector3 localPos, ILayoutItemData data) { gridIdx = idx; this.transform.localPosition = localPos; TryRefreshUI(data); //Debug.LogWarning("xxx " + idx); }
public override void TryRefreshUI(ILayoutItemData data) { if (data == null) { return; } newData = data as ItemData; isDataDirty = true; TryFillData(); }
public abstract void TryRefreshUI(ILayoutItemData data);