Ejemplo n.º 1
0
 // Token: 0x06001E71 RID: 7793 RVA: 0x0009A1E4 File Offset: 0x000983E4
 private void DoSwitchMovementFunction(object sender, ControllerInteractionEventArgs e)
 {
     VRTK_RoomExtender.MovementFunction movementFunction = this.roomExtender.movementFunction;
     if (movementFunction == VRTK_RoomExtender.MovementFunction.Nonlinear)
     {
         this.roomExtender.movementFunction = VRTK_RoomExtender.MovementFunction.LinearDirect;
         return;
     }
     if (movementFunction != VRTK_RoomExtender.MovementFunction.LinearDirect)
     {
         return;
     }
     this.roomExtender.movementFunction = VRTK_RoomExtender.MovementFunction.Nonlinear;
 }
Ejemplo n.º 2
0
 // Token: 0x06001831 RID: 6193 RVA: 0x00080B74 File Offset: 0x0007ED74
 protected virtual void Update()
 {
     VRTK_RoomExtender.MovementFunction movementFunction = this.movementFunction;
     if (movementFunction == VRTK_RoomExtender.MovementFunction.Nonlinear)
     {
         this.MoveHeadCircleNonLinearDrift();
         return;
     }
     if (movementFunction != VRTK_RoomExtender.MovementFunction.LinearDirect)
     {
         return;
     }
     this.MoveHeadCircle();
 }