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