public void PositionChanged() { transform.position = new Vector3( Mathf.Round(transform.position.x / MainManager.instance.NodeSnap) * MainManager.instance.NodeSnap , Mathf.Round(transform.position.y / MainManager.instance.NodeSnap) * MainManager.instance.NodeSnap ); if (InPoints != null) { foreach (var InPoint in InPoints) { InPoint.UpdateLine(); } } if (OutPoints != null) { foreach (var OutPoint in OutPoints) { foreach (var Out in OutPoint.Outs) { Out.UpdateLine(); } } } }