From ce7c70820bce2230bcc5209e7c8c6b06b62977c3 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 15 Aug 2020 19:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E9=80=82=E9=85=8D=20?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=AB=9E=E6=8A=80=E5=9C=BA=E8=BF=9B=E6=94=BB?= =?UTF-8?q?=E9=98=B5=E5=AE=B9=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/Battle/BattleBestPopup.prefab | 12 ++++---- .../~Lua/Modules/Player/JumpManager.lua | 28 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/Battle/BattleBestPopup.prefab b/Assets/ManagedResources/Prefabs/UI/Battle/BattleBestPopup.prefab index 159fea52f8..9af28fafe9 100644 --- a/Assets/ManagedResources/Prefabs/UI/Battle/BattleBestPopup.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Battle/BattleBestPopup.prefab @@ -305,9 +305,9 @@ RectTransform: m_Father: {fileID: 8485517753741111699} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: 0, y: 81.09961} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -878.9004} m_SizeDelta: {x: 348, y: 44} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &624247546002579982 @@ -902,10 +902,10 @@ RectTransform: m_Father: {fileID: 8485517753741111699} m_RootOrder: 0 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_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 1080, y: 1920} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8487183040723315029 CanvasRenderer: diff --git a/Assets/ManagedResources/~Lua/Modules/Player/JumpManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/JumpManager.lua index 806f589b5d..3c3da6b965 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/JumpManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/JumpManager.lua @@ -47,23 +47,23 @@ local jumpDic = { end end, [JumpType.Arena] = function(data)--竞技场 - local arenaDefend = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND) + -- local arenaDefend = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_DEFEND) local arenaAttack = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_ARENA_ATTACK) --首次进入竞技场 将主线编队复制到竞技场防守、进攻编队 - if #arenaAttack.teamHeroInfos==0 then - -- LogColor("red","竞技进攻编队为空") - local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL) - local newFormation = {} - for index = 1, #formation.teamHeroInfos do - local teamInfo = formation.teamHeroInfos[index] - local singleData = {} - singleData.heroId = teamInfo.heroId - singleData.position = index - table.insert(newFormation, singleData) - end - FormationManager.RefreshFormation(FormationTypeDef.FORMATION_ARENA_ATTACK,newFormation,formation.teamPokemonInfos) - end + -- if #arenaAttack.teamHeroInfos==0 then + -- -- LogColor("red","竞技进攻编队为空") + -- local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL) + -- local newFormation = {} + -- for index = 1, #formation.teamHeroInfos do + -- local teamInfo = formation.teamHeroInfos[index] + -- local singleData = {} + -- singleData.heroId = teamInfo.heroId + -- singleData.position = index + -- table.insert(newFormation, singleData) + -- end + -- FormationManager.RefreshFormation(FormationTypeDef.FORMATION_ARENA_ATTACK,newFormation,formation.teamPokemonInfos) + -- end if #arenaDefend.teamHeroInfos == 0 then -- LogColor("red","竞技防守编队为空") local formation = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL)