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));
 }
Exemple #3
0
    public void ApplyState(NetStream state)
    {
        float num = encoder.ApplyState(state);

        ApplyChutePhase(num);
    }
Exemple #4
0
 public void ApplyState(NetStream state)
 {
     Apply(encoder.ApplyState(state));
 }