From 7343ab7ec08f074f3dd90db2453c2c0c8b53a5a8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Mon, 21 Oct 2024 14:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A8=83=E5=A8=83=E6=9C=BA=E6=8A=93?= =?UTF-8?q?=E5=8F=96=E6=A6=82=E7=8E=87=E5=85=AC=E5=BC=8F=E3=80=91=20https:?= =?UTF-8?q?//www.tapd.cn/31044302/prong/stories/view/1131044302001001287?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/clawdoll/scenepolicy_clawdoll.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gamesrv/clawdoll/scenepolicy_clawdoll.go b/gamesrv/clawdoll/scenepolicy_clawdoll.go index 7a5fbcc..6b2d895 100644 --- a/gamesrv/clawdoll/scenepolicy_clawdoll.go +++ b/gamesrv/clawdoll/scenepolicy_clawdoll.go @@ -56,6 +56,10 @@ func (this *PolicyClawdoll) OnStart(s *base.Scene) { func (this *PolicyClawdoll) OnStop(s *base.Scene) { logger.Logger.Trace("(this *PolicyClawdoll) OnStop , sceneId=", s.GetSceneId()) + sceneEx, ok := s.ExtraData.(*SceneEx) + if ok { + sceneEx.ShutDown() + } } func (this *PolicyClawdoll) OnTick(s *base.Scene) {