public void LeaveRoom(ISession session) { int entityId = session.Entity.Id; _entityHandler.RemoveEntity(entityId); session.Entity = null; if (!_entityHandler.HasUserEntities) { StopRoomCycle(); } }