// 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; } }
void Awake() { gyroKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_GYRO, controlName); gyro = (GyroControllerType)EasyWiFiController.controllerDataDictionary[gyroKey]; }