Files
BusyRabbit/Content/Lua/Level/Actor/BusyPlayerRole.lua

12 lines
299 B
Lua
Raw Normal View History

2025-09-23 02:52:33 +08:00
local BusyPlayerRole = {}
function BusyPlayerRole:UpdateMoveDirection(InDirection)
if(InDirection.Y > 0) then
self["SpineAnimationComponent"]:SetSkin("front/move")
else
self["SpineAnimationComponent"]:SetSkin("back/move")
end
end
return Class(nil, nil, BusyPlayerRole)