예제 #1
0
파일: Pipe.cs 프로젝트: ubla/Sonic-Realms
 /// <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);
 }