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

25 lines
620 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using ET.EventType;
using ET;
using System;
using System.Collections.Generic;
namespace ET
{
public class ShowHpBarEvent : AEvent_Sync<ShowHpBar>
{
public override void Run(ShowHpBar args)
{
2021-04-11 19:50:39 +08:00
HudCharacter hudCharacter = args.unit.GetComponent<HudCharacter>();
2021-04-08 20:09:59 +08:00
hudCharacter.ShowHpBar(args.unit);
}
}
public class HideHpBarEvent : AEvent_Sync<HideHpBar>
{
public override void Run(HideHpBar args)
{
2021-04-11 19:50:39 +08:00
HudCharacter hudCharacter = args.unit.GetComponent<HudCharacter>();
2021-04-08 20:09:59 +08:00
hudCharacter.HideHpBar();
}
}
}