using System; using Model; namespace Hotfix { [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().UnLock(message.Key); reply(response); } catch (Exception e) { ReplyError(response, e, reply); } } } }