XunLuoPathComponentSystem.cs 386 B

1234567891011121314151617
  1. using UnityEngine;
  2. namespace ET
  3. {
  4. public static class XunLuoPathComponentSystem
  5. {
  6. public static Vector3 GetCurrent(this XunLuoPathComponent self)
  7. {
  8. return self.path[self.Index];
  9. }
  10. public static void MoveNext(this XunLuoPathComponent self)
  11. {
  12. self.Index = ++self.Index % self.path.Length;
  13. }
  14. }
  15. }