/** 更新战斗力 */ private void updateCombat() { if (mounts != null) { combat.text = "" + mounts.getCombat(); } else { combat.text = "0"; } }
/** 公共信息的更新 */ private void updateComon(Mounts mounts) { name.text = temp.getExhangeItemName(); if (mounts != null) { fight.text = mounts.getCombat().ToString(); } MountsSample mountsSample = MountsSampleManager.Instance.getMountsSampleBySid(temp.exchangeSid); Mounts activeMounts = MountsManagerment.Instance.getMountsBySid(temp.exchangeSid); if (mountsSample.isShowTime && activeMounts != null) { timeObject.SetActive(true); } else { timeObject.SetActive(false); } ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.ICONIMAGEPATH + mountsSample.imageID.ToString(), icon); iconBg.spriteName = QualityManagerment.qualityIDToIconSpriteName(mountsSample.qualityId); }