public void Logic() { List <Vector2> vectorList = new List <Vector2>(10); float angle = progress * fillAngle, part = fillAngle / 8; vectorList.Add(new Vector2(0, 0)); vectorList.Add(TKMath.GetAngleVector(startAngle)); for (int i = 0; i < 9; i++) { if (Math.Abs(angle) > Math.Abs(part * i)) { vectorList.Add(TKMath.PolarPointVector(part * i + startAngle, 4)); } else { vectorList.Add(TKMath.PolarPointVector(angle + startAngle, 4)); break; } } stencilMesh.Vertices2 = vectorList.ToArray(); }