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); }
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); }