MoveStart_StartAnimation.cs 900 B

12345678910111213141516171819202122232425262728293031
  1. //TODO: DELETE
  2. /*using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace ET.Client
  6. {
  7. [Event(SceneType.Current)]
  8. public class MoveStart_StartAnimation : AEvent<EventType.MoveStart>
  9. {
  10. protected override async ETTask Run(Scene scene, EventType.MoveStart args)
  11. {
  12. Unit unit = args.Unit;
  13. unit.GetComponent<AnimatorComponent>().AppendCommand(AnimatorComponent.CMDRun);
  14. await ETTask.CompletedTask;
  15. }
  16. }
  17. [Event(SceneType.Current)]
  18. public class MoveStop_StartAnimation : AEvent<EventType.MoveStop>
  19. {
  20. protected override async ETTask Run(Scene scene, EventType.MoveStop args)
  21. {
  22. Unit unit = args.Unit;
  23. unit.GetComponent<AnimatorComponent>().AppendCommand(AnimatorComponent.CMDStopRun);
  24. await ETTask.CompletedTask;
  25. }
  26. }
  27. }
  28. */