public void LevelScene(SceneManager _this, ObjCharacter obj) { if (obj == null) { return; } var scene = obj.Scene; if (scene == null) { Logger.Info("GetSceneObj null..............."); return; } //后台统计 try { string v = string.Format("scene#{0}|{1}|{2}|{3}|{4}|{5}|{6}", obj.ServerId, obj.ObjId, obj.GetLevel(), obj.Attr.GetFightPoint(), //战力 obj.Scene.TypeId, 1, //0:进入 1:离开 DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")); // 时间 PlayerLog.Kafka(v); } catch (Exception) { } scene.LeaveScene(obj); }