// Use this for initialization
 void Awake()
 {
     gyroKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_GYRO, controlName);
     gyro    = (GyroControllerType)EasyWiFiController.controllerDataDictionary[gyroKey];
     if (SystemInfo.supportsGyroscope)
     {
         Input.gyro.enabled = true;
     }
 }
示例#2
0
 void Awake()
 {
     gyroKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_GYRO, controlName);
     gyro    = (GyroControllerType)EasyWiFiController.controllerDataDictionary[gyroKey];
 }