using System; namespace ET.Server { [ActorMessageHandler(SceneType.Location)] public class ObjectRemoveRequestHandler: AMActorRpcHandler { protected override async ETTask Run(Scene scene, ObjectRemoveRequest request, ObjectRemoveResponse response, Action reply) { await scene.GetComponent().Remove(request.Key); reply(); } } }