Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Input.acceleration.y > accelY) { accelY = Input.acceleration.y; }
- if (Input.acceleration.x > accelX) { accelX = Input.acceleration.x; }
- if (Input.acceleration.z > accelZ) { accelZ = Input.acceleration.z; }
- accelYText.text = "Y = " + accelY.ToString();
- accelZText.text = "Z = " + accelZ.ToString();
- accelXText.text = "X = " + accelX.ToString();
- sensor.getMaximumRange())
- SensorManager.STANDARD_GRAVITY;
- vibration = Math.Abs(previousAccel-Accel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement