19 lines
410 B
C#
19 lines
410 B
C#
|
using ET.EventType;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public class MoveStartEvent : AEvent_Sync<MoveStart>
|
|||
|
{
|
|||
|
public override void Run(MoveStart args)
|
|||
|
{
|
|||
|
var unit = args.unit;
|
|||
|
var animancer = unit.GetComponent<UnitView>().monoAnimancer;
|
|||
|
|
|||
|
animancer.PlayRun();
|
|||
|
unit.state = Unit.State.Move;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|