void Awake() { if( mInstance != null ) { Debug.LogError( string.Format( "Only one instance of GestureAgent allowed! Destroying:" + gameObject.name +", Other:" + mInstance.gameObject.name ) ); Destroy( gameObject ); return; } mInstance = this; accelerometerUpdateInterval = 1f / 60f; lowPassFilterFactor = accelerometerUpdateInterval / lowPassKernelWidthInSeconds; }
private void GestureGet( GestureAgent.GestureType newGesture ) { gesturesThisFrame.Add( newGesture ); }