Exemple #1
0
 private bool DetectMoveNunchunk(WiimoteApi.Util.ReadOnlyArray <int> accel)
 {
     for (int i = 0; i < accel.Length; i++)
     {
         if (Mathf.Abs(accel[i] - ZERO_NUNCHUNK) > NUNCHUNK_TH)
         {
             return(true);
         }
     }
     return(false);
 }
Exemple #2
0
 private bool DetectMoveWiimote(WiimoteApi.Util.ReadOnlyArray <int> accel)
 {
     for (int i = 0; i < accel.Length; i++)
     {
         if (Mathf.Abs(accel[i] - ZERO_WIIMOTE) > WIIMOTE_TH)
         {
             return(true);
         }
     }
     return(false);
 }