public virtual void ApplyState(NetStream state) { if (syncNetBody && useLimits) { float value = Mathf.Lerp(minValue, maxValue, encoder.ApplyState(state)); SetValue(value); } }
public void ApplyState(NetStream state) { position = Mathf.Lerp(minValue, maxValue, encoder.ApplyState(state)); speed = 0f; SetStatic(position); motor.SetValue(NetSignal.encoder.ApplyState(state)); velocity.SetValue(NetSignal.encoder.ApplyState(state)); }
public void ApplyState(NetStream state) { float num = encoder.ApplyState(state); ApplyChutePhase(num); }
public void ApplyState(NetStream state) { Apply(encoder.ApplyState(state)); }