最后测试一下~
将以下代码写入start函数里:
Vector3[]test = new Vector3[8];
test[0] = new Vector3 (4f,0,0);
test[1] = new Vector3 (10f,0,0);
test[2] = new Vector3 (2f,0,0);
test[3] = new Vector3 (6f,0,0);
test[4] = new Vector3 (3f,1f,0);
test[5] = new Vector3 (2f,2f,0);
test[6] = new Vector3 (1f,5f,0);
test[7] = new Vector3 (1f,20f,0f);
drawPlane(test);
结果如下:

将以下代码写入start函数里:
Vector3[]test = new Vector3[8];
test[0] = new Vector3 (4f,0,0);
test[1] = new Vector3 (10f,0,0);
test[2] = new Vector3 (2f,0,0);
test[3] = new Vector3 (6f,0,0);
test[4] = new Vector3 (3f,1f,0);
test[5] = new Vector3 (2f,2f,0);
test[6] = new Vector3 (1f,5f,0);
test[7] = new Vector3 (1f,20f,0f);
drawPlane(test);
结果如下:
