26 lines
672 B
C#
Executable File
26 lines
672 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
|
|
[ActorMessageHandler]
|
|
public class C2M_StartPetExploreHandler : AMActorLocationRpcHandler<Unit, C2M_StartPetExplore, M2C_StartPetExplore>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_StartPetExplore request, M2C_StartPetExplore response, Action reply)
|
|
{
|
|
Pet pet = unit.GetComponent<Pet>();
|
|
string ret = pet.Explore();
|
|
if (ret != null)
|
|
{
|
|
response.Message = ret;
|
|
reply();
|
|
return;
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
|
|
}
|