コード例 #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);
 }
コード例 #2
0
 protected virtual void OnAfterProxySourceChange()
 {
     cachedVelocityTracker = ProxySource == null ? null : ProxySource.GetComponentInChildren <VelocityTracker>();
 }