AMOrientationKey.cs 649 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [Serializable]
  5. public class AMOrientationKey : AMKey
  6. {
  7. public bool setTarget(Transform target)
  8. {
  9. if (target != this.target)
  10. {
  11. this.target = target;
  12. return true;
  13. }
  14. return false;
  15. }
  16. public override AMKey CreateClone()
  17. {
  18. AMOrientationKey amorientationKey = ScriptableObject.CreateInstance<AMOrientationKey>();
  19. amorientationKey.frame = this.frame;
  20. amorientationKey.target = this.target;
  21. amorientationKey.easeType = this.easeType;
  22. amorientationKey.customEase = new List<float>(this.customEase);
  23. return amorientationKey;
  24. }
  25. public Transform target;
  26. }