using System; using ETModel; namespace ETHotfix { [MessageHandler(AppType.Location)] public class ObjectRemoveRequestHandler : AMRpcHandler { protected override void Run(Session session, ObjectRemoveRequest message, Action reply) { ObjectRemoveResponse response = new ObjectRemoveResponse(); try { Game.Scene.GetComponent().Remove(message.Key); reply(response); } catch (Exception e) { ReplyError(response, e, reply); } } } }