Function PathTracer.CheckInvariants
Checks that invariants are satisfied.
void CheckInvariants ()
Checks that invariants are satisfied.
This is only called in the editor for performance reasons.
firstPartIndex must be in bounds of parts.
The first part must contain at least 1 node (unless there are no parts in the path at all).
The number of nodes in the first part must be equal to the number of portals in the funnel state + 1.
The number of portals in the funnel state must equal portalIsNotInnerCorner.Length.
The last node of the last part must end at the end of the path.
The first node of the first part must start at the start of the path.
firstPartContainsDestroyedNodes implies that there must be at least one destroyed node in the first part (this is an implication, not an equivalence).
If the first node is not destroyed, then startNode must be the first node in the first part.