12345678910111213141516171819202122232425262728 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ET.Client
- {
- [Event(SceneType.Current)]
- public class MoveStart_StartAnimation : AEvent<EventType.MoveStart>
- {
- protected override async ETTask Run(Scene scene, EventType.MoveStart args)
- {
- Unit unit = args.Unit;
- unit.GetComponent<AnimatorComponent>().AppendCommand(AnimatorComponent.CMDRun);
- }
- }
- [Event(SceneType.Current)]
- public class MoveStop_StartAnimation : AEvent<EventType.MoveStop>
- {
- protected override async ETTask Run(Scene scene, EventType.MoveStop args)
- {
- Unit unit = args.Unit;
- unit.GetComponent<AnimatorComponent>().AppendCommand(AnimatorComponent.CMDStopRun);
- }
- }
- }
|