特训按钮关闭逻辑修改

onepiece_demo_arena
xiejun 2023-12-21 15:56:24 +08:00
parent 6ca07f6730
commit cc5277679c
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ function RoleInfoPanel:OnShow()
this.curLiveObj = HeroManager.LoadHerolive(curHeroData,this.curObj)
local t=ConfigManager.TryGetAllConfigsDataByKey(ConfigName.Train,"HeroID",curHeroData.id)
this.trainingBtn:SetActive(#t~=0)
this.trainingBtn:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Train) and #t~=0)
local leftToward=0
if leftHeroData.skinId and leftHeroData.skinId~=0 then
local roleCon=ConfigManager.TryGetConfigData(ConfigName.RoleConfig,leftHeroData.skinId)