Beispiel #1
0
    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;
    }
Beispiel #2
0
 private void GestureGet( GestureAgent.GestureType newGesture )
 {
     gesturesThisFrame.Add( newGesture );
 }