我在c#中编写了一个脚本来测试unity3d 4.0中的陀螺仪.并得到信息打击:

然而,我旋转或移动我的谷歌nexus 7.每个参数保持"0"; 我不知道为什么.
有人可以帮帮我吗?
这是我的代码:
using UnityEngine;
using System.Collections;
public class gyroscope : MonoBehaviour
{
private Gyroscope gyo1;
private bool gyoBool;
//private Quaternion rotFix;
// Use this for initialization
void Start ()
{
gyoBool = SystemInfo.supportsGyroscope;
Debug.Log (gyoBool.ToString ());
}
// Update is called once per frame
void Update ()
{
gyo1=Input.gyro;
}
void OnGUI ()
{
if (gyoBool != null)
{
GUI.Label (new Rect (10, Screen.height / 2 - 50, 100, 100), gyoBool.ToString ());
if (gyoBool == …Run Code Online (Sandbox Code Playgroud)