AnimatorComponent.cs 536 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace ET.Client
  4. {
  5. public enum MotionType
  6. {
  7. None,
  8. Idle,
  9. Run,
  10. }
  11. [ComponentOf(typeof(Unit))]
  12. public class AnimatorComponent : Entity, IAwake, IUpdate, IDestroy
  13. {
  14. public Dictionary<string, AnimationClip> animationClips = new Dictionary<string, AnimationClip>();
  15. public HashSet<string> Parameter = new HashSet<string>();
  16. public MotionType MotionType;
  17. public float MontionSpeed;
  18. public bool isStop;
  19. public float stopSpeed;
  20. public Animator Animator;
  21. }
  22. }