12 lines
406 B
C#
12 lines
406 B
C#
using Fantasy.Async;
|
|
using Fantasy.Network.Interface;
|
|
|
|
namespace Fantasy;
|
|
|
|
public class G2Mail_ExitRequestHandler : RouteRPC<MailUnit, G2Mail_ExitRequest, Mail2G_ExitResponse>
|
|
{
|
|
protected override async FTask Run(MailUnit mailUnit, G2Mail_ExitRequest request, Mail2G_ExitResponse response, Action reply)
|
|
{
|
|
await mailUnit.Scene.GetComponent<MailUnitManageComponent>().Exit(mailUnit);
|
|
}
|
|
} |