public override void Refresh(HeroData data) { base.Refresh(data); if (data != null) { //TODO:圆形图标 //if (icon) icon.spriteName = data.icon; for (int i = 0; i < sprsEnery.Length; i++) { sprsEnery[i].gameObject.SetActive(i < data.getMaxEnergy()); } } }