CTT/Unity/Assets/HotfixView/Event/UI/ChangeTtileEvent.cs

18 lines
441 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET.EventType;
using System;
using System.Collections.Generic;
namespace ET
{
public class ChangeTtileEvent : AEvent<ChangeTtile>
{
public override async ETTask Run(ChangeTtile args)
{
Unit unit = UnitComponent.Instance.Get(args.Id);
2021-04-11 19:50:39 +08:00
HudCharacter hud = unit.GetComponent<HudCharacter>();
2021-04-08 20:09:59 +08:00
hud.SetTitle(args.title);
await ETTask.CompletedTask;
}
}
}