CombatPathMono.cs 695 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using Core.Utility;
  3. using UnityEngine;
  4. namespace GameLogic.Combat.CombatTool
  5. {
  6. public class CombatPathMono: MonoBehaviour
  7. {
  8. // public Transform[] Transforms;
  9. public CombatSencePath BesselPath;
  10. private void OnDrawGizmos()
  11. {
  12. if (BesselPath == null)
  13. {
  14. return;
  15. }
  16. float bl = 1.0f / 300;
  17. for (float i = 0; i < 300 - 1; i++)
  18. {
  19. Vector3 pos1 = BesselPath.GetValue(i * bl);
  20. Vector3 pos2 = BesselPath.GetValue((i + 1) * bl);
  21. Debug.DrawLine(pos1, pos2, Color.red);
  22. }
  23. }
  24. }
  25. }