接入Spine

This commit is contained in:
2025-09-23 02:52:33 +08:00
parent 89d751ac34
commit c90b46f430
291 changed files with 32686 additions and 473 deletions

View File

@ -42,11 +42,11 @@ function SubSystem:ReceiveWorldBeginPlay()
self.generator = CreateItemGenerator(row_data)
-- 创建初始篝火
local bonfire = BusyActorManagerSubSystem:SpawnBonfire(row_data.FirstBonfirePosition)
-- local bonfire = BusyActorManagerSubSystem:SpawnBonfire(row_data.FirstBonfirePosition)
-- 创建角色
local role = BusyActorManagerSubSystem:SpawnRole(bonfire)
GameplayStatics.GetPlayerController(self, 0):Possess(role)
-- local role = BusyActorManagerSubSystem:SpawnRole(bonfire)
-- GameplayStatics.GetPlayerController(self, 0):Possess(role)
end
function SubSystem:ReceiveSubSystemTick(DeltaTime)

View 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)