CTT/Unity/Assets/HotfixView/Event/SetHudCharacterEvent.cs

18 lines
408 B
C#

using ET.EventType;
using ET;
using System;
using System.Collections.Generic;
namespace ET
{
public class SetHudCharacterEvent : AEvent_Sync<SetHudCharacter>
{
public override void Run(SetHudCharacter args)
{
Unit unit = args.unit;
HudCharacter hud = unit.GetComponent<HudCharacter>();
hud.Init(args, args.progressTitleType);
}
}
}