动画同步调试

This commit is contained in:
flswld
2023-03-14 00:07:30 +08:00
parent a14eea9bfb
commit 2ce948a5ce
3 changed files with 53 additions and 38 deletions
+3
View File
@@ -373,6 +373,9 @@ func (g *GameManager) SceneEntityDrownReq(player *model.Player, payloadMsg pb.Me
req := payloadMsg.(*proto.SceneEntityDrownReq)
world := WORLD_MANAGER.GetWorldByID(player.WorldId)
if world == nil {
return
}
scene := world.GetSceneById(player.SceneId)
scene.DestroyEntity(req.EntityId)