Example #1
0
    // Use this for initialization
    void Start()
    {
        VisitorCube visitor = new VisitorCube();
        Cube        cube    = new Cube();

        cube.RunVisitor(visitor);
        XShape xshape = new XShape();

        xshape.RunVisitor(visitor);
    }