PGRData/Script/matrix/xhome/xdorm/xhomechar/xhomefsm/XHomeCharFSMInteract.lua

21 lines
445 B
Lua
Raw Normal View History

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