zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/HotfixView/Event/UI/ChangeTtileEvent.cs

18 lines
432 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);
var hud = unit.GetComponent<HudCharacter>();
hud.SetTitle(args.title);
await ETTask.CompletedTask;
}
}
}