AMPath.cs 800 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using UnityEngine;
  3. [Serializable]
  4. public class AMPath
  5. {
  6. public AMPath()
  7. {
  8. }
  9. public AMPath(Vector3[] _path, int _interp, int _startFrame, int _endFrame)
  10. {
  11. this.path = _path;
  12. this.interp = _interp;
  13. this.startFrame = _startFrame;
  14. this.endFrame = _endFrame;
  15. }
  16. public AMPath(Vector3[] _path, int _interp, int _startFrame, int _endFrame, int _startIndex, int _endIndex)
  17. {
  18. this.path = _path;
  19. this.interp = _interp;
  20. this.startFrame = _startFrame;
  21. this.endFrame = _endFrame;
  22. this.startIndex = _startIndex;
  23. this.endIndex = _endIndex;
  24. }
  25. public int getNumberOfFrames()
  26. {
  27. return this.endFrame - this.startFrame;
  28. }
  29. public Vector3[] path;
  30. public int interp;
  31. public int startFrame;
  32. public int endFrame;
  33. public int startIndex;
  34. public int endIndex;
  35. }