挂机多人开启条件添加
parent
3738137554
commit
5f9144f4e5
|
@ -1358,6 +1358,7 @@ FUNCTION_OPEN_TYPE = {
|
|||
HongMengZhen = 86, -- 鸿蒙阵
|
||||
hunyin = 87, -- 魂印
|
||||
tianshumijuan = 88,--天书秘卷
|
||||
guajigongneng = 89,--挂机多人
|
||||
}
|
||||
|
||||
TaskGetBtnIconDef = {
|
||||
|
|
|
@ -115,6 +115,8 @@ function this:Init()
|
|||
local tempconfig = ConfigManager.GetConfigData(ConfigName.ChallengeMapConfig,m_curMapId)
|
||||
if not this.playerViews[0] then
|
||||
--LogGreen(m_curMapId)
|
||||
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.guajigongneng) then
|
||||
iconNum = 9
|
||||
local randomNum = math.random(2, 4)
|
||||
PlayerManager.GetFightMapPlayerNPCData(randomNum,function(NPCList)
|
||||
--LogGreen("NPCList:"..LengthOfTable(NPCList))
|
||||
|
@ -129,6 +131,8 @@ function this:Init()
|
|||
index = index + 1
|
||||
end
|
||||
end)
|
||||
end
|
||||
iconNum = 4
|
||||
this.playerViews[0] = SubUIManager.Open(SubUIConfig.SingleFightPlayerView,this.mapRoot.transform,this)
|
||||
this.playerViews[0]:SetData(startUV[m_curMapId].u,startUV[m_curMapId].v,true)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue