ShaoNv
parent
e9e4636f03
commit
e8e133fb39
|
|
@ -1241,7 +1241,7 @@ end
|
|||
|
||||
-- 获取战斗背景
|
||||
function this.GetBattleBg(fightType)
|
||||
local index = "Map1"
|
||||
local index = "Map6"
|
||||
if fightType == BATTLE_TYPE.STORY_FIGHT then
|
||||
local curChapter = FightPointPassManager.GetCurChapterIndex()
|
||||
--index = "Map" .. math.floor((curChapter - 1) % 5 + 1)
|
||||
|
|
|
|||
|
|
@ -287,8 +287,10 @@ function this:OnOpen(_fightData, _fightType, _endFunc, _guideType, isChangeBGM)
|
|||
|
||||
if _fightData.bg then
|
||||
--this.LiveBg = poolManager:LoadLive(_fightData.bg, this.BG.transform, Vector3.New(1.5, 1.5, 1.5), Vector3.zero)
|
||||
LogError("hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh")
|
||||
this.mapGameObject = BattleManager.CreateMap(this.battleSceneGameObject, _fightData.bg)
|
||||
else
|
||||
LogError("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"..BattleManager.GetBattleBg(fightType))
|
||||
--this.LiveBg = poolManager:LoadLive(BattleManager.GetBattleBg(fightType), this.BG.transform,
|
||||
--Vector3.New(1.5, 1.5, 1.5), Vector3.zero)
|
||||
this.mapGameObject = BattleManager.CreateMap(this.battleSceneGameObject, BattleManager.GetBattleBg(fightType))
|
||||
|
|
|
|||
Loading…
Reference in New Issue