getPointCount() public method

public getPointCount ( ) : int
return int
Ejemplo n.º 1
0
    void killOld()
    {
        if (lines.Count > 0)
        {
            makeLine other = (makeLine)lines [0].GetComponent(typeof(makeLine));
            vertexCount = other.getPointCount();

//			if(vertexCount>maxVertexCount){
//				other.dequeueLine(0,1);
//			}

//
//			if (lines.Count > maxLines)
//				other.isBeingDestroyed = true;
//			else
//				other.isBeingDestroyed = false;

            vertexCount = 0;

//			for(int i = 0 ; i < lines.Count ; i++){
//				other = (makeLine)lines [i].GetComponent (typeof(makeLine));
//				vertexCount += other.getPointCount();
//				if (other.isDestroyed) {
//					Destroy (lines [i].gameObject);
//					lines.Remove (lines [i]);
//				}
//			}
        }
    }