bug修复

This commit is contained in:
xiekaidong 2023-05-26 17:13:41 +08:00
parent cff917cac8
commit 8eb1c39caf

View File

@ -282,7 +282,7 @@ function IdleUnitComp:getAnimationKeyFrameTime(animationName, index)
end end
local timeList = self.attackKeyFrameTimeMap[animationName] local timeList = self.attackKeyFrameTimeMap[animationName]
if timeList == nil then if timeList == nil then
local timeList = self.baseObject:getAnimationKeyFrameTimes(animationName) timeList = self.baseObject:getAnimationKeyFrameTimes(animationName)
if not timeList[1] then if not timeList[1] then
table.insert(timeList, 0.3) table.insert(timeList, 0.3)
end end