void Update() { points = poly.GetPath(0); lineRend.positionCount = points.Length; for (int i = 0; i < points.Length; i++) { points[i] += Random.insideUnitCircle * Time.deltaTime * wobbles; lineRend.SetPosition(i, points[i]); } poly.SetPath(0, points); HardLight2DManager.RefreshColliderReference(poly); }
static void RefreshAll() { HardLight2DManager.RefreshAllCollidersReferences(); }