private void TestLinkCreation() { Debug.Assert(me.LinksLength == 0); Debug.Assert(vml.linkBindings.Count == 0); var testTo = new Vector3(2.7f, 2.7f, 2.7f); var testFrom = new Vector3(19, 19, 19); vml.ConstructAndBindViewLink(testTo, testFrom); Debug.Assert(me.LinksLength == 1); Debug.Assert(vml.linkBindings.Count == 1); }
void DrawLine() { var drawLinkObject = vml.ConstructAndBindViewLink(first.transform.position, second.transform.position); drawLinkObject.GetComponent <DrawLinkBehaviour>().Initialize(first, second); }
// Use this for initialization void Start() { vml.ConstructAndBindViewBlock(new Vector3(2, 0, 0), PremadeBlock.AddFunction); vml.ConstructAndBindViewLink(new Vector3(10, 0, 10), new Vector3(11, 0, 11)); }