特效反转

This commit is contained in:
xiekaidong 2023-05-31 17:22:48 +08:00
parent 10bd5a422d
commit 12d73fc941

View File

@ -1792,20 +1792,11 @@ function BattleUnitComp:getEffectAndPlay(fxInfo, isLoop)
effectObj:setLocalPosition(0, 0, 0)
end
end
if fxInfo.follow_direction then
if self.side == BattleConst.SIDE_ATK then
if effectObj:getIsEulerAnglesFlip() then
effectObj:setLocalEulerAngles(0, 0, 0)
end
effectObj:setLocalScale(fxScale, fxScale, fxScale)
else
if effectObj:getIsEulerAnglesFlip() then
effectObj:setLocalEulerAngles(0, 180, 0)
effectObj:setLocalScale(fxScale, fxScale, fxScale)
else
effectObj:setLocalScale(-fxScale, fxScale, fxScale)
end
if fxInfo.flip then
if effectObj:getIsEulerAnglesFlip() then
effectObj:setLocalEulerAngles(0, 180, 0)
end
effectObj:setLocalScale(fxScale, fxScale, fxScale)
else
if effectObj:getIsEulerAnglesFlip() then
effectObj:setLocalEulerAngles(0, 0, 0)