Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / NavigationPointInterleavingException.cs
@小李xl 小李xl on 3 Mar 2023 375 bytes 修复之前计算导航会报错的bug
  1.  
  2. using System;
  3. using Godot;
  4.  
  5. /// <summary>
  6. /// 导航点交错异常
  7. /// </summary>
  8. public class NavigationPointInterleavingException : Exception
  9. {
  10. /// <summary>
  11. /// 交错点
  12. /// </summary>
  13. public Vector2 Point { get; }
  14. public NavigationPointInterleavingException(Vector2 point, string message): base(message)
  15. {
  16. Point = point;
  17. }
  18. }