Exemplo n.º 1
0
    void MoveVectorTo(string vector1, string vector2)
    {
        SuperVector superVector1 = GetVectorByName(vector1);

        if (superVector1 == null)
        {
            return;
        }

        SuperVector superVector2 = GetVectorByName(vector2);

        if (superVector2 == null)
        {
            return;
        }

        // If we are here, we know that both superVector1 and superVector2 are both good.
        superVector2.MoveTailTo(superVector1.X, superVector1.Y, superVector1.Z);
    }