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