森罗英雄全部死亡战斗报错
parent
4114a241dd
commit
e0d156ad74
|
@ -737,8 +737,8 @@ RectTransform:
|
|||
- {fileID: 6181458139143078872}
|
||||
- {fileID: 4187306671584326201}
|
||||
- {fileID: 5726404457783881133}
|
||||
- {fileID: 194017150024516650}
|
||||
- {fileID: 9077118300160263819}
|
||||
- {fileID: 4967188716782291275}
|
||||
m_Father: {fileID: 1280518217681842888}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -2919,7 +2919,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 760474955983389260}
|
||||
m_Father: {fileID: 3470195748214042733}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
@ -2947,7 +2947,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.44705883}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -16429,80 +16429,6 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &8448845352012017367
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4967188716782291275}
|
||||
- component: {fileID: 7184392757610797521}
|
||||
- component: {fileID: 4027527468104648706}
|
||||
m_Layer: 0
|
||||
m_Name: Image (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &4967188716782291275
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8448845352012017367}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3470195748214042733}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 1080, y: 1920}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7184392757610797521
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8448845352012017367}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &4027527468104648706
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8448845352012017367}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.5882353}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 3f81c34508d65844284ee57b784a9ebb, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &8529496287736485913
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -18040,6 +17966,80 @@ RectTransform:
|
|||
m_AnchoredPosition: {x: 90, y: -450}
|
||||
m_SizeDelta: {x: 180, y: 180}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &9113979305450340104
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 194017150024516650}
|
||||
- component: {fileID: 5731814570066677949}
|
||||
- component: {fileID: 3444893118490727181}
|
||||
m_Layer: 0
|
||||
m_Name: mask
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &194017150024516650
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9113979305450340104}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3470195748214042733}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 6.9, y: -512.9}
|
||||
m_SizeDelta: {x: 741.4, y: 745.2}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5731814570066677949
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9113979305450340104}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3444893118490727181
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9113979305450340104}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.5882353}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &9148763997354335057
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -20,6 +20,7 @@ function this.Init(context, root, gameType, gameId, gameParams)
|
|||
this.itemPre = Util.GetGameObject(root, "Layout/itemPre")
|
||||
this.btn = Util.GetGameObject(root, "btnStart")
|
||||
this.empty = Util.GetGameObject(root, "empty")
|
||||
this.maks = Util.GetGameObject(root, "mask")
|
||||
this.gameConfig = ConfigManager.GetConfig(ConfigName.TrialGameConfig)
|
||||
this.itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
this.atrConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
|
||||
|
@ -32,6 +33,7 @@ end
|
|||
function this.Show()
|
||||
this.root:SetActive(true)
|
||||
this.empty:SetActive(true)
|
||||
this.maks:SetActive(true)
|
||||
this.liveNode = poolManager:LoadLive("live2d_c_yj_00040", this.liveRoot.transform, Vector3.one, Vector3.New(-22,57, 0))
|
||||
|
||||
--数据乱序操作
|
||||
|
@ -46,6 +48,7 @@ function this.Show()
|
|||
local thread=coroutine.start(function()
|
||||
this.empty:SetActive(true)
|
||||
this.btn:SetActive(false)
|
||||
this.maks:SetActive(false)
|
||||
for index, value in ipairs(_itemsList) do
|
||||
local cFront = Util.GetGameObject(_itemsList[index], "front")
|
||||
cFront.transform:DORotate(Vector3.New(0, 90, 0), 0.3)
|
||||
|
@ -108,6 +111,7 @@ function this.SetCard(table)
|
|||
local cFront = Util.GetGameObject(_itemsList[i], "front")
|
||||
local cBack = Util.GetGameObject(_itemsList[i], "back")
|
||||
local num = Util.GetGameObject(_itemsList[i], "front/num"):GetComponent("Text")
|
||||
num.gameObject:SetActive(table[i] ~= -1)
|
||||
if isActive then
|
||||
this.btn:SetActive(true)
|
||||
cFront.transform:DORotate(Vector3.New(0, 0, 0), 0.3)
|
||||
|
|
|
@ -455,6 +455,7 @@ function this.EdgeEventTrigger(u, v)
|
|||
end
|
||||
-- 触发了事件
|
||||
if not isEventTrigger then
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Map.StopWalk)
|
||||
isEventTrigger = true
|
||||
EndLessMapManager.isTrigger = true
|
||||
this.SetCtrlState(true)
|
||||
|
@ -464,6 +465,19 @@ function this.EdgeEventTrigger(u, v)
|
|||
|
||||
end
|
||||
Log(Language[11304] .. MapManager.mapPointList[pos])
|
||||
|
||||
--如果英雄阵亡 无法选择其进行战斗
|
||||
local num = #MapManager.trialHeroInfo
|
||||
for i, v in ipairs(MapManager.trialHeroInfo) do
|
||||
if v.heroHp<=0 then
|
||||
num = num -1
|
||||
if num == 0 then
|
||||
PopupTipPanel.ShowTip("猎妖师全部死亡,无法进入战斗!")
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local var=PlayerManager.uid.."GeneralPopup_TrialSettingBtn"..1--1是是否自动战斗
|
||||
if pointView.cell.Style == 1 then
|
||||
|
|
|
@ -175,8 +175,6 @@ function this.GetMissionState()
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- 已经完成步骤
|
||||
local doneStep = {}
|
||||
-- 未完成步骤
|
||||
|
@ -280,12 +278,6 @@ end
|
|||
|
||||
-- 前往下一层界面
|
||||
local mapDialoguePanel = function(showType, eventId, showValues, options)
|
||||
--旧界面是单独的界面
|
||||
-- if not UIManager.IsOpen(UIName.MapOptionPanel) then
|
||||
-- UIManager.OpenPanel(UIName.MapOptionPanel, showType, eventId, showValues, options)
|
||||
-- LogPink("MissionManager showType"..showType.." eventId"..eventId)
|
||||
-- end
|
||||
|
||||
--现已做成三级弹窗
|
||||
if not UIManager.IsOpen(UIName.GeneralPopup) then
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.TrialToNextFloor, showType, eventId, showValues, options)
|
||||
|
@ -310,16 +302,25 @@ local directFight = function(showType, eventId, showValues, options)
|
|||
if t==0 then --非快速战斗,打开二级弹窗
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Map.ShowEnemyInfo, monsterGroupId,eventId,showValues)
|
||||
else--快速战斗
|
||||
--如果英雄阵亡 无法选择其进行战斗(这段已经没用了,每次战斗结束都会判断角色是否还活着)
|
||||
for i, v in ipairs(MapManager.trialHeroInfo) do
|
||||
if MapTrialManager.selectHeroDid==v.heroId then
|
||||
if v.heroHp<=0 then
|
||||
PopupTipPanel.ShowTip(Language[11247])
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
-- --如果英雄阵亡 无法选择其进行战斗
|
||||
-- for i, v in ipairs(MapManager.trialHeroInfo) do
|
||||
-- local num = #MapManager.trialHeroInfo
|
||||
-- if v.heroHp<=0 then
|
||||
-- num = num -1
|
||||
-- if num == 0 then
|
||||
-- PopupTipPanel.ShowTip("猎妖师全部死亡,无法进入战斗!")
|
||||
-- Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
|
||||
-- return
|
||||
-- end
|
||||
-- end
|
||||
-- -- if MapTrialManager.selectHeroDid==v.heroId then
|
||||
-- -- if v.heroHp<=0 then
|
||||
-- -- PopupTipPanel.ShowTip(Language[11247])
|
||||
-- -- Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
|
||||
-- -- return
|
||||
-- -- end
|
||||
-- -- end
|
||||
-- end
|
||||
|
||||
--先保存编队
|
||||
local curFormation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_DREAMLAND)
|
||||
|
@ -510,6 +511,7 @@ local funcList2={
|
|||
--地图点触发
|
||||
function this.MapPointTrigger(style)
|
||||
local i=0
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Map.StopWalk)
|
||||
for k, v in pairs(MapManager.mapPointList) do
|
||||
if MapPointConfig[v] and MapPointConfig[v].Style==style then
|
||||
i =style
|
||||
|
|
Loading…
Reference in New Issue