using ET.EventType; using System; using System.Collections.Generic; namespace ET { public class ChangeTtileEvent : AEvent { public override async ETTask Run(ChangeTtile args) { Unit unit = UnitComponent.Instance.Get(args.Id); HudCharacter hud = unit.GetComponent(); hud.SetTitle(args.title); await ETTask.CompletedTask; } } }