移除废弃内容
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NBF;
|
||||
using NBC;
|
||||
using NBF;
|
||||
using Obi;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -27,8 +28,13 @@ public class Rope : MonoBehaviour
|
||||
public void LineLength_OnValueChanged(float length)
|
||||
{
|
||||
cursor = cursor == null ? GetComponent<ObiRopeCursor>() : cursor;
|
||||
var old = stretchScale;
|
||||
stretchScale = Mathf.Clamp(length - percentageElasticity, 0f, float.PositiveInfinity);
|
||||
|
||||
// cursor.ChangeLength(length);
|
||||
if (stretchScale != old)
|
||||
{
|
||||
Log.Info($"rope name={gameObject.name} stretchScale={stretchScale}");
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
Reference in New Issue
Block a user