16 lines
415 B
C#
16 lines
415 B
C#
|
using System;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
[ActorMessageHandler]
|
|||
|
public class C2M_ShowPetHandler: AMActorLocationHandler<Unit, C2M_ShowPet>
|
|||
|
{
|
|||
|
protected override async ETTask Run(Unit unit, C2M_ShowPet message)
|
|||
|
{
|
|||
|
Pet pet = unit.GetComponent<Pet>();
|
|||
|
pet.isShow = !pet.isShow;
|
|||
|
Game.EventSystem.Change(pet);
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|