提交示例代码
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user