Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if (Input.acceleration.y > accelY) { accelY = Input.acceleration.y; }
  2. if (Input.acceleration.x > accelX) { accelX = Input.acceleration.x; }
  3. if (Input.acceleration.z > accelZ) { accelZ = Input.acceleration.z; }
  4.  
  5. accelYText.text = "Y = " + accelY.ToString();
  6. accelZText.text = "Z = " + accelZ.ToString();
  7. accelXText.text = "X = " + accelX.ToString();
  8.  
  9. sensor.getMaximumRange())
  10.  
  11. SensorManager.STANDARD_GRAVITY;
  12.  
  13. vibration = Math.Abs(previousAccel-Accel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement