private static void GripWallWalk()
{
List<InputDevice> list = new List<InputDevice>();
InputDevices.GetDevicesWithCharacteristics(580, list);
bool flag;
list[0].TryGetFeatureValue(CommonUsages.gripButton, ref flag);
bool flag2 = flag;
if (flag2)
{
RaycastHit raycastHit;
Physics.Raycast(Player.Instance.rightHandTransform.position, Player.Instance.rightHandTransform.right, ref raycastHit, 100f, 512);
bool flag3 = raycastHit.distance < 3f;
if (flag3)
{
Player.Instance.bodyCollider.attachedRigidbody.useGravity = false;
Player.Instance.bodyCollider.attachedRigidbody.velocity -= raycastHit.normal * (9.9f * Time.deltaTime);
}
Player.Instance.bodyCollider.attachedRigidbody.useGravity = true;
}
}