// Use this for initialization void Awake() { StartCoroutine(WaitForDevice()); if (OnThresholdExceeded == null) { OnThresholdExceeded = new EventThresholdLevel(); } }
void Awake() { lowPassFilterFactor = accelerometerUpdateInterval / lowPassKernelWidthInSeconds; lowPassAccel = Input.acceleration; if (OnShake == null) { OnShake = new EventThresholdLevel(); } }