- fix bugs for event listener

- change redalarm triggered by random(seems not work as expected)
This commit is contained in:
2025-04-10 21:13:11 +08:00
parent ec3178c2d6
commit c55b615554
4 changed files with 17 additions and 7 deletions
+5 -1
View File
@@ -108,7 +108,11 @@ do
end
function PatrolUnit:Remove()
if self.group then self.group:destroy() end
if self.group then
if self.group:isExist() then
self.group:destroy()
end
end
self:stop()