public void Refresh(LopetDataEx lopetData) { if (lopetData == null) { this.mActive.SetActive(false); return; } this.mActive.SetActive(true); this.mActiveSkillInfo = lopetData.GetPlayerSkillInfo(); if (this.mActiveSkillInfo != null) { this.mActiveSkill.mainTexture = Res.Load<Texture>(string.Format("icon/skill/{0}", this.mActiveSkillInfo.Icon), false); } else { this.mActiveSkill.mainTexture = null; } }