|
@@ -17,7 +17,7 @@ public class TailingLine : MonoBehaviour
|
|
|
public AnimationCurve offQuanZhong;
|
|
|
|
|
|
public float quanZhong=5;
|
|
|
-
|
|
|
+ public float disStrength=0.5f;
|
|
|
// public float addTime;
|
|
|
public Transform rootTran;
|
|
|
public int count;
|
|
@@ -31,6 +31,7 @@ public class TailingLine : MonoBehaviour
|
|
|
|
|
|
private void Awake()
|
|
|
{
|
|
|
+ _linePointInfo.Clear();
|
|
|
_lineRenderer = GetComponent<LineRenderer>();
|
|
|
Init();
|
|
|
}
|
|
@@ -90,7 +91,7 @@ public class TailingLine : MonoBehaviour
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- md = Mathf.Lerp(md, minDis, at);
|
|
|
+ md = Mathf.Lerp(md, minDis, at*disStrength);
|
|
|
}
|
|
|
|
|
|
if (m == i)
|