Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var gyroBool : boolean;
- var gyrodev : Gyroscope;
- function Start () {
- gyroBool = SystemInfo.supportsGyroscope;
- if(gyroBool) {
- gyrodev = Input.gyro;
- gyrodev.enabled = true;
- }
- Debug.Log(gyroBool.ToString());
- }
- function Update () {
- Debug.Log(gyrodev.attitude);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement