Function PendingMovementOverrideChanges.TryApply

TryApply (refChange change)

Applies one change, unless its agent is a clone whose managed data has not been repaired yet.

Private Static
bool TryApply (

refChange

change

)

Applies one change, unless its agent is a clone whose managed data has not been repaired yet.

Returns false only while the agent still has to be repaired, which asks the caller to keep the change queued. Without this, an agent instantiated from inside a movement override callback would silently lose a callback registered on it before the change could be applied, because AgentManagedDataRepairSystem runs first in the group and so not again until next frame.