/// <summary> /// Updates the platform's path with data from the collider stored in Path. /// </summary> public void ReconstructPath() { _previousPath = Path; Path.enabled = !DisablePathCollider; _cachedPath = Physics2DUtility.GetPoints(Path); _cachedLength = Physics2DUtility.GetPathLength(_cachedPath); }