Beispiel #1
0
 /// <summary>
 /// Sets <see cref="cachedVelocityTracker"/> to the first found <see cref="VelocityTracker"> on the <see cref="ProxySource"> or any of its descendants.
 /// </summary>
 protected virtual void SetCachedVelocityTracker()
 {
     cachedVelocityTracker = ProxySource.TryGetComponent <VelocityTracker>(true);
 }
 protected virtual void OnAfterProxySourceChange()
 {
     cachedVelocityTracker = ProxySource == null ? null : ProxySource.GetComponentInChildren <VelocityTracker>();
 }