2021-04-08 20:09:59 +08:00
|
|
|
|
using ET.EventType;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public class MoveStartEvent : AEvent_Sync<MoveStart>
|
|
|
|
|
{
|
|
|
|
|
public override void Run(MoveStart args)
|
|
|
|
|
{
|
2021-04-11 19:50:39 +08:00
|
|
|
|
Unit unit = args.unit;
|
|
|
|
|
MonoAnimancer animancer = unit.GetComponent<UnitView>().monoAnimancer;
|
2021-04-08 20:09:59 +08:00
|
|
|
|
|
|
|
|
|
animancer.PlayRun();
|
|
|
|
|
unit.state = Unit.State.Move;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|