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