Пример #1
0
        public override void Render()
        {
            var           parentWidget  = Parent.AsWidget;
            var           animationTime = parentWidget.AnimationTime;
            MorphableMesh mesh          = null;

            while (true)
            {
                mesh = Meshes[currMeshIndex];
                if (animationTime < mesh.LeftBound)
                {
                    if (currMeshIndex == 0)
                    {
                        break;
                    }
                    currMeshIndex--;
                }
                else if (animationTime < mesh.RightBound)
                {
                    break;
                }
                else
                {
                    currMeshIndex++;
                }
            }
            mesh.Render(parentWidget);
        }