修改线逻辑
This commit is contained in:
@@ -15,35 +15,6 @@ public class RopeFishLineEditor : Editor
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
if (GUILayout.Button("增加0.5长度"))
|
||||
{
|
||||
_target.AddTargetLength(0.5f);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("减小0.5长度"))
|
||||
{
|
||||
_target.AddTargetLength(-0.5f);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("增加0.1长度"))
|
||||
{
|
||||
_target.AddTargetLength(0.1f);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("减小0.1长度"))
|
||||
{
|
||||
_target.AddTargetLength(-0.1f);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("增加0.01长度"))
|
||||
{
|
||||
_target.AddTargetLength(0.01f);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("减小0.01长度"))
|
||||
{
|
||||
_target.AddTargetLength(-0.01f);
|
||||
}
|
||||
|
||||
|
||||
if (GUILayout.Button("打印总长度"))
|
||||
|
||||
Reference in New Issue
Block a user