1.修复多处错误2.SplineNode依然存在设置不生效的错误
This commit is contained in:
@@ -28,10 +28,10 @@ namespace Demo.Game
|
||||
public void AddTo(SplineCore core)
|
||||
{
|
||||
MyNodeContent = core.NodeContent;
|
||||
MyNode.AddConnection(core.MySplineComputer, MyNodeContent);
|
||||
core.MySplineComputer.SetPointSize(MyNodeContent, NodeSize);
|
||||
core.MySplineComputer.SetPointColor(MyNodeContent, NodeColor);
|
||||
core.MySplineComputer.SetPointSize(MyNodeContent, NodeSize);
|
||||
core.MySplineComputer.SetPointNormal(MyNodeContent, IsSetupNodeRotation ? NodeRotation.normalized : transform.up);
|
||||
MyNode.AddConnection(core.MySplineComputer, MyNodeContent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -44,9 +44,9 @@ namespace Demo.Game
|
||||
</summary>
|
||||
<param name=""size""></param>
|
||||
")]
|
||||
public void SetNoteSize(string size)
|
||||
public void SetNodeSize(string size)
|
||||
{
|
||||
NodeSize = float.Parse(size);
|
||||
NodeSize = Parse(size);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -65,9 +65,9 @@ namespace Demo.Game
|
||||
<param name=""b""></param>
|
||||
<param name=""a""></param>
|
||||
")]
|
||||
public void SetNoteColor(string r, string g, string b, string a)
|
||||
public void SetNodeColor(string r, string g, string b, string a)
|
||||
{
|
||||
NodeColor = new(float.Parse(r), float.Parse(g), float.Parse(b), float.Parse(a));
|
||||
NodeColor = new(Parse(r), Parse(g), Parse(b), Parse(a));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -84,10 +84,10 @@ namespace Demo.Game
|
||||
<param name=""y""></param>
|
||||
<param name=""z""></param>
|
||||
")]
|
||||
public void SetNoteRotation(string x, string y, string z)
|
||||
public void SetNodeRotation(string x, string y, string z)
|
||||
{
|
||||
IsSetupNodeRotation = true;
|
||||
this.transform.localEulerAngles = NodeRotation = new(float.Parse(x), float.Parse(y), float.Parse(z));
|
||||
this.transform.localEulerAngles = NodeRotation = new(Parse(x), Parse(y), Parse(z));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user