PGRData/Resources/Scripts/XHome/XDorm/XHomeChar/XHomeFSM/XHomeCharFSMInteract.lua
2022-12-26 14:06:01 +05:30

21 lines
No EOL
445 B
Lua

local XHomeCharFSMInteract = XHomeCharFSMFactory.RegisterFSM("XHomeCharFSMInteract",XHomeCharFSMType.INTERACT)
function XHomeCharFSMInteract:OnEnter()
end
function XHomeCharFSMInteract:Execute()
--ToDo
end
function XHomeCharFSMInteract:OnExit()
--如果有家具交互
if self.Agent.Furniture then
self.Agent:DisInteractFurniture()
end
self.Agent.NavMeshAgent.IsObstacle = true
end
return XHomeCharFSMInteract