1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#region AI优化
|
||||
#region AI优化
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -199,6 +199,10 @@ public class MonsterMoveLine
|
||||
/// </summary>
|
||||
public Vector2 GetBezierPointJob(float t)
|
||||
{
|
||||
// ⭐ 防止除零:moveTime<=0 时直接返回起点,避免 NaN
|
||||
if (moveTime <= 0f)
|
||||
return bezierCurveData.start;
|
||||
|
||||
if (t>moveTime)
|
||||
{
|
||||
t=moveTime;
|
||||
|
||||
Reference in New Issue
Block a user