using ET.EventType; using ET; using System; using System.Collections.Generic; namespace ET { public class SetHudCharacterEvent : AEvent_Sync { public override void Run(SetHudCharacter args) { Unit unit = args.unit; HudCharacter hud = unit.GetComponent(); hud.Init(args, args.progressTitleType); } } public class SetHudCharacter_ChangeHpEvent : AEvent_Sync { public override void Run(SetHudCharacter_ChangeHp args) { Unit unit = args.unit; NumericComponent num = unit.GetComponent(); HudCharacter hud = unit.GetComponent(); hud.RefreshHp(num); } } public class SetHudCharacter_ChangeLevelEvent : AEvent_Sync { public override void Run(SetHudCharacter_ChangeLevel args) { Unit unit = args.unit; HudCharacter hud = unit.GetComponent(); hud.ChangeToLevel(unit); } } }