限时招募立绘不删除修改
parent
970fd9f1bb
commit
b3727097c3
|
@ -223,12 +223,14 @@ function TimeLimitUpHero:RefreshHeroData()
|
|||
curConfig = bool and heroConfig[id] or itemConfig[id]
|
||||
self.mask1:SetActive(bool)
|
||||
self.mask2:SetActive(not bool)
|
||||
LogError("id================================"..id)
|
||||
if bool then--是神将
|
||||
self.heroIcon.sprite=self.spLoader:LoadSprite(artResourcesConfig[curConfig.Icon].Name)
|
||||
self.heroNameTxt.text=curConfig.ReadingName
|
||||
self.heroProImg.sprite=self.spLoader:LoadSprite(GetProStrImageByProNum(curConfig.PropertyName))
|
||||
if heroLiveObj then
|
||||
poolManager:UnLoadLive(lastLiveName, heroLiveObj)
|
||||
--poolManager:UnLoadLive(lastLiveName, heroLiveObj)
|
||||
GameObject.DestroyImmediate(heroLiveObj)
|
||||
end
|
||||
lastLiveName=GetResourcePath(curConfig.Live)
|
||||
heroLiveObj=HeroManager.LoadHerolive1(curConfig,self.heroPar)
|
||||
|
|
Loading…
Reference in New Issue