DESKTOP-BGJIU14\ck преди 2 месеца
родител
ревизия
cfb91fc1e2
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      Assets/Scripts/Core/Utility/TailingLine.cs

+ 3 - 2
Assets/Scripts/Core/Utility/TailingLine.cs

@@ -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)