Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (initialized && parentVertexBundle.coordinates != this.transform.localPosition)
        {
            if (moving)
            {
                UpdateVertexBundle();
            }
            else
            {
                UpdatePositionFromVertexBundle();
            }

            parentObject.UpdateMesh();
        }
    }