接入Spine
This commit is contained in:
11
Content/Lua/Level/Actor/BusyPlayerRole.lua
Normal file
11
Content/Lua/Level/Actor/BusyPlayerRole.lua
Normal file
@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user