コード例 #1
0
    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);
    }
コード例 #2
0
    void DrawLine()
    {
        var drawLinkObject = vml.ConstructAndBindViewLink(first.transform.position, second.transform.position);

        drawLinkObject.GetComponent <DrawLinkBehaviour>().Initialize(first, second);
    }
コード例 #3
0
ファイル: TestMVVMCompiler.cs プロジェクト: jtorre39/nebula
 // 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));
 }