33 lines
901 B
C#
33 lines
901 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
|
|
[ActorMessageHandler]
|
|
public class C2M_GetAllTrialCopyRewordHandler : AMActorLocationRpcHandler<Unit, C2M_GetAllTrialCopyReword, M2C_GetAllTrialCopyReword>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_GetAllTrialCopyReword request, M2C_GetAllTrialCopyReword response, Action reply)
|
|
{
|
|
try
|
|
{
|
|
PlayerData data = unit.GetComponent<PlayerData>();
|
|
string ret = await data.GetAllTrialCopyExp();
|
|
if (ret != null)
|
|
{
|
|
response.Message = ret;
|
|
reply();
|
|
return;
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Log.Error(e);
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
|
|
}
|