16 lines
521 B
C#
Executable File
16 lines
521 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class M2U_GetComponentHandler : AMActorRpcHandler<Scene, M2U_GetComponent, U2M_GetComponent>
|
|
{
|
|
protected override async ETTask Run(Scene scene, M2U_GetComponent request, U2M_GetComponent response, Action reply)
|
|
{
|
|
var str =await scene.GetComponent<PlayerInfoComponent>().GetInfo(request.UserId, request.type);
|
|
response.component = str;
|
|
reply();
|
|
}
|
|
}
|
|
} |