public override void UpdateUI(UI_GridItemData itemData) { base.UpdateUI(itemData); InitData(); UI_WorkGridData workData = itemData as UI_WorkGridData; if (null == workData) { return; } workKind = workData.workKind; if (0 == workKind) { return; } Work curWork = GameMain.Instance.WorkMgr.GetWorkInfo(workKind); SetText(curWork); SetSliderValue(curWork); SetButtons(curWork); }
public virtual void UpdateUI(UI_GridItemData itemData) { }