【战斗】修复回收机制错误,导致立绘重叠的问题,删除无用log

gaoxin 2020-12-03 11:44:57 +08:00
parent e8a1e94830
commit 9eaf7f8d6b
3 changed files with 4 additions and 8 deletions

View File

@ -286,7 +286,6 @@ function this:SetData(_fightData, _seed, _battleType, _maxRound)
}
this.recordId = BattleRecordManager.SetBattleRecord(record)
BattleRecordManager.SetBattleBothNameStr(this.nameStr, this.recordId)
end
@ -333,14 +332,12 @@ end
--
function this.Clear()
tbRoleDispose = {} --战斗统计前将roleView收集到该容器中tbRole清理掉
--战斗统计前将roleView收集到该容器中tbRole清理掉
for _, v in pairs(tbRole) do
table.insert(tbRoleDispose, v)
end
tbRole = {}
tbMonsterDispose = {}
for _, v in pairs(tbMonster) do
table.insert(tbMonsterDispose, v)
end

View File

@ -56,7 +56,7 @@ function BuffCtrl.New(unit, buffRoot)
end
function BuffCtrl:ctor(unit, buffRoot)
LogPink("Buffctrl "..unit.camp.."|"..unit.role.position)
-- LogPink("Buffctrl "..unit.camp.."|"..unit.role.position)
self.owner = unit
self.owner.role.Event:AddEvent(BattleEventName.BuffStart, self.OnBuffStart, self)
self.owner.role.Event:AddEvent(BattleEventName.BuffCover, self.OnBuffCover, self)

View File

@ -151,7 +151,6 @@ function ItemView:GetRewardShow(_itemData, effectLayer)
self.PreciousShow:SetActive(true)
self.PreciousShowText.text=Language[12078]
end
LogError("掉落物品".._itemData.itemType)
if _itemData.itemType == 1 or _itemData.itemType == 0 then--物品
--item
if effectLayer > 0 then