fix: widen note lanes and clear warnings
This commit is contained in:
@@ -88,11 +88,13 @@ namespace VRSDK
|
||||
[NonSerialized]
|
||||
public float CameraHeight;
|
||||
|
||||
#if SDK_OCULUS
|
||||
/// <summary>
|
||||
/// This event is raised after the character controller is moved. This is used by the OVRAvatarLocomotion script to keep the avatar transform synchronized
|
||||
/// with the OVRPlayerController.
|
||||
/// </summary>
|
||||
public event Action<Transform> TransformUpdated;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// This bool is set to true whenever the player controller has been teleported. It is reset after every frame. Some systems, such as
|
||||
@@ -177,7 +179,9 @@ namespace VRSDK
|
||||
private float SimulationRate = 60f;
|
||||
private float buttonRotation = 0f;
|
||||
private bool ReadyToSnapTurn; // Set to true when a snap turn has occurred, code requires one frame of centered thumbstick to enable another snap turn.
|
||||
#if SDK_OCULUS
|
||||
private bool playerControllerEnabled = false;
|
||||
#endif
|
||||
private float moveInfluence = 0.0f;
|
||||
public Vector3 lastPosition = Vector3.zero;
|
||||
private Vector3 velocity = Vector3.zero;
|
||||
@@ -409,8 +413,6 @@ namespace VRSDK
|
||||
moveRight = Input.GetKey(KeyCode.D) || Input.GetKey(KeyCode.RightArrow);
|
||||
moveBack = Input.GetKey(KeyCode.S) || Input.GetKey(KeyCode.DownArrow);
|
||||
#endif
|
||||
bool dpad_move = false;
|
||||
|
||||
MoveScale = 1.0f;
|
||||
|
||||
if ((moveForward && moveLeft) || (moveForward && moveRight) || (moveBack && moveLeft) || (moveBack && moveRight))
|
||||
@@ -427,6 +429,7 @@ namespace VRSDK
|
||||
|
||||
// Run!
|
||||
#if !UNITY_XR
|
||||
bool dpad_move = false;
|
||||
if (dpad_move || Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
|
||||
moveInfluence *= 2.0f;
|
||||
#endif
|
||||
@@ -713,4 +716,3 @@ namespace VRSDK
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user