CTT/Unity/Assets/HotfixView/Event/Battle/PlayAnimationEvent.cs

25 lines
654 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 PlayAnimation_AttackEvent : AEvent_Sync<PlayAnimation_Attack>
{
public override void Run(PlayAnimation_Attack args)
{
2021-04-11 19:50:39 +08:00
Unit unit = args.unit;
AnimancerHelper.GetAnimancers(args.zoneScene,unit).PlayAtk();
2021-04-08 20:09:59 +08:00
}
}
public class PlayAnimation_HurtEvent : AEvent_Sync<PlayAnimation_Hurt>
{
public override void Run(PlayAnimation_Hurt args)
{
2021-04-11 19:50:39 +08:00
Unit unit = args.unit;
AnimancerHelper.GetAnimancers(args.zoneScene,unit).PlayHurt();
2021-04-08 20:09:59 +08:00
}
}
}