特效反转
This commit is contained in:
parent
10bd5a422d
commit
12d73fc941
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user