UnitPathComponent.cs 526 B

123456789101112131415161718192021222324252627
  1. using UnityEngine;
  2. namespace ET
  3. {
  4. public class UnitPathComponent: Entity
  5. {
  6. public Vector3 Target;
  7. private RecastPath recastPath;
  8. public ETCancellationToken CancellationToken;
  9. public RecastPath RecastPath
  10. {
  11. get
  12. {
  13. return this.recastPath;
  14. }
  15. set
  16. {
  17. if (recastPath != null)
  18. recastPath.Dispose();
  19. this.recastPath = value;
  20. }
  21. }
  22. }
  23. }