Files
2026-06-04 11:42:34 +02:00

2560 lines
75 KiB
C#

using System;
using System.Diagnostics;
using System.Threading;
using UnityEngine;
// Token: 0x02000CA2 RID: 3234
public class HeadGestureDetect : MonoBehaviour
{
// Token: 0x06019AFE RID: 105214 RVA: 0x0072590C File Offset: 0x00723B0C
private float DDEGDJIMOPN(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 1742f)
{
FKOFGIJFIKA -= 1106f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019AFF RID: 105215 RVA: 0x00725924 File Offset: 0x00723B24
private void CJIBCBLNGGM()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.JPHILIHEDLA(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.KNIGLLOABCI(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B00 RID: 105216 RVA: 0x007259B8 File Offset: 0x00723BB8
public void DOJHFLKMMLF(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B01 RID: 105217 RVA: 0x007259F0 File Offset: 0x00723BF0
private float JCLCPDEDEBL(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 107f)
{
FKOFGIJFIKA -= 1366f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B02 RID: 105218 RVA: 0x00725A08 File Offset: 0x00723C08
private void IKFCLMNDGPF()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.DJNGCCCGDCE(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.PCMCDAIIBMF(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.MBJPBOGIGLO(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.CJECCFHBFNA(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 0;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = true;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = true;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = true;
this.NCNHCLOIBJA = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)109);
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = true;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-39));
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-34));
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)107);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)49);
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)104);
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
this.HLOLIDEJKEH = true;
}
}
// Token: 0x06019B03 RID: 105219 RVA: 0x0072612C File Offset: 0x0072432C
private float MNBNPBDLPCM(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 873f)
{
FKOFGIJFIKA -= 1946f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B04 RID: 105220 RVA: 0x00726144 File Offset: 0x00724344
public void ONCMNCFJIHK(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B05 RID: 105221 RVA: 0x0072617C File Offset: 0x0072437C
private float EKJCKIMDCJE(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 798f)
{
FKOFGIJFIKA -= 268f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B06 RID: 105222 RVA: 0x00726194 File Offset: 0x00724394
private void ACNKPEFNLFO()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.JDFOKHBLNAF(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.FJCAHJDFMIJ(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B07 RID: 105223 RVA: 0x00726228 File Offset: 0x00724428
private void POEDAMONBNL()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.CEIOGHINCMM(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.PCBIFNEOIKG(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B08 RID: 105224 RVA: 0x007262BC File Offset: 0x007244BC
private void NFLGCLOKMGN()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B09 RID: 105225 RVA: 0x00726350 File Offset: 0x00724550
public void HJJFKMGGFDD(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B0A RID: 105226 RVA: 0x00726388 File Offset: 0x00724588
private void HNDLFBBPEGL()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.DJNGCCCGDCE(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.JDFOKHBLNAF(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.BOAKLDANPPM(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.GJIDNEKMJML(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.OOAMFJIPBMO(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.OOAMFJIPBMO(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 0;
}
if (this.EOHJLNAPAKO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 0;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = true;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = false;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = false;
this.NCNHCLOIBJA = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-51));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = false;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-30));
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-97));
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)47);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodRight);
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)91);
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B0B RID: 105227 RVA: 0x00726AAC File Offset: 0x00724CAC
private float PCMCDAIIBMF(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 52f || num < 248f)
{
num = 135f - num;
}
return num;
}
// Token: 0x140000E0 RID: 224
// (add) Token: 0x06019B0C RID: 105228 RVA: 0x00726ADC File Offset: 0x00724CDC
// (remove) Token: 0x06019B2D RID: 105261 RVA: 0x00728E70 File Offset: 0x00727070
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event Action<HeadGestureDetect.DMPPGHHPHGO> FAGOFNIBEBB;
// Token: 0x06019B0D RID: 105229 RVA: 0x00726B14 File Offset: 0x00724D14
public void NJPBIIDOMKB(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B0E RID: 105230 RVA: 0x00726B4C File Offset: 0x00724D4C
private float PCBIFNEOIKG(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 1980f)
{
FKOFGIJFIKA -= 1745f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B0F RID: 105231 RVA: 0x00726B64 File Offset: 0x00724D64
private float KNIGLLOABCI(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 623f)
{
FKOFGIJFIKA -= 629f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B10 RID: 105232 RVA: 0x00726B7C File Offset: 0x00724D7C
private float CEKHMABLOHK(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 628f)
{
FKOFGIJFIKA -= 616f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B11 RID: 105233 RVA: 0x00726B94 File Offset: 0x00724D94
private float DJNGCCCGDCE(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 1022f)
{
FKOFGIJFIKA -= 76f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B12 RID: 105234 RVA: 0x00726BAC File Offset: 0x00724DAC
public void BPOLMKAFOAL(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B13 RID: 105235 RVA: 0x00726BE4 File Offset: 0x00724DE4
private void MCNEKPDJDFO()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.MNBNPBDLPCM(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.BOAKLDANPPM(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.PCBIFNEOIKG(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B14 RID: 105236 RVA: 0x00726C78 File Offset: 0x00724E78
private float CJECCFHBFNA(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 1005f || num < 1934f)
{
num = 511f - num;
}
return num;
}
// Token: 0x06019B15 RID: 105237 RVA: 0x00726CA8 File Offset: 0x00724EA8
private void KCMHNMPNGCI()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.CEIOGHINCMM(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.KNIGLLOABCI(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.DDEGDJIMOPN(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B16 RID: 105238 RVA: 0x00726D3C File Offset: 0x00724F3C
public void OCPLJEHIAAH(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B18 RID: 105240 RVA: 0x00726DD4 File Offset: 0x00724FD4
private float JGBICCBGJGL(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 1582f || num < 1267f)
{
num = 1601f - num;
}
return num;
}
// Token: 0x06019B19 RID: 105241 RVA: 0x00726E04 File Offset: 0x00725004
private float JDFOKHBLNAF(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 1871f)
{
FKOFGIJFIKA -= 1573f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B1A RID: 105242 RVA: 0x00726E1C File Offset: 0x0072501C
private void NJBNCAPPAOH()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.MNPEALMMBHP(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.MNPEALMMBHP(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.PIIHLJLHCIF(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.CJECCFHBFNA(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.OOAMFJIPBMO(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 0;
}
if (this.EOHJLNAPAKO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 1;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 0;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = false;
this.ADJAGPKBBHI = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = true;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = false;
this.NCNHCLOIBJA = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-3));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = false;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)57);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-63));
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)67);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-45));
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-7));
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B1B RID: 105243 RVA: 0x00727540 File Offset: 0x00725740
private void Start()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B1C RID: 105244 RVA: 0x007275D4 File Offset: 0x007257D4
private float GJIDNEKMJML(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 1911f || num < 999f)
{
num = 421f - num;
}
return num;
}
// Token: 0x06019B1D RID: 105245 RVA: 0x00727604 File Offset: 0x00725804
private void NHAOAEBNLJI()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.MNPEALMMBHP(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B1E RID: 105246 RVA: 0x00727698 File Offset: 0x00725898
private void ELJEMOGNBOP()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.DJNGCCCGDCE(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.DDEGDJIMOPN(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.GJIDNEKMJML(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.JGBICCBGJGL(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.CJECCFHBFNA(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = true;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 0;
}
if (this.FOLCOEKAMGF > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = true;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = false;
this.ADOPNFDBPCJ = false;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = false;
this.NCNHCLOIBJA = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-75));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
this.NCNHCLOIBJA = true;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-28));
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = true;
this.HLOLIDEJKEH = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-71));
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-41));
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-116));
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-109));
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B1F RID: 105247 RVA: 0x00727DBC File Offset: 0x00725FBC
public void PPAIBBINPAN(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B20 RID: 105248 RVA: 0x00727DF4 File Offset: 0x00725FF4
private void Update()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.MBJPBOGIGLO(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.MBJPBOGIGLO(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.MBJPBOGIGLO(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 0;
}
if (this.EOHJLNAPAKO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 0;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 0;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = false;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = false;
this.ADOPNFDBPCJ = false;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = false;
this.NCNHCLOIBJA = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullShake);
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = false;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.LeanRight);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodRight);
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.LeanLeft);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodLeft);
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullSideNod);
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B21 RID: 105249 RVA: 0x00728518 File Offset: 0x00726718
private float PIIHLJLHCIF(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 885f || num < 97f)
{
num = 1782f - num;
}
return num;
}
// Token: 0x06019B22 RID: 105250 RVA: 0x00728548 File Offset: 0x00726748
public void AKBHADCLGLA(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B23 RID: 105251 RVA: 0x00728580 File Offset: 0x00726780
private float MNPEALMMBHP(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 712f)
{
FKOFGIJFIKA -= 311f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B24 RID: 105252 RVA: 0x00728598 File Offset: 0x00726798
private float BOAKLDANPPM(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 256f)
{
FKOFGIJFIKA -= 1395f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B25 RID: 105253 RVA: 0x007285B0 File Offset: 0x007267B0
private void NICOCLOFMEF()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.PCBIFNEOIKG(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.DDEGDJIMOPN(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B26 RID: 105254 RVA: 0x00728644 File Offset: 0x00726844
private float OOAMFJIPBMO(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 1126f || num < 912f)
{
num = 960f - num;
}
return num;
}
// Token: 0x06019B27 RID: 105255 RVA: 0x00728674 File Offset: 0x00726874
public void JBAIOICDAJM(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B28 RID: 105256 RVA: 0x007286AC File Offset: 0x007268AC
public void HICKJCNFFBD(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B29 RID: 105257 RVA: 0x007286E4 File Offset: 0x007268E4
private void NIBGLHFHJLJ()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.KNIGLLOABCI(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.DJNGCCCGDCE(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.CJECCFHBFNA(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.OOAMFJIPBMO(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.PIIHLJLHCIF(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = true;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 1;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 0;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = false;
this.ADJAGPKBBHI = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = true;
this.ADOPNFDBPCJ = false;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = false;
this.NCNHCLOIBJA = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)107);
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = true;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-127));
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)69);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-61));
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-81));
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
this.HLOLIDEJKEH = true;
}
}
// Token: 0x06019B2A RID: 105258 RVA: 0x00728E08 File Offset: 0x00727008
private float JPHILIHEDLA(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 220f)
{
FKOFGIJFIKA -= 1609f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B2B RID: 105259 RVA: 0x00728E20 File Offset: 0x00727020
private float KNBPGIBLHFI(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 180f)
{
FKOFGIJFIKA -= 360f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B2C RID: 105260 RVA: 0x00728E38 File Offset: 0x00727038
public void NHCGIOKCPFD(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B2E RID: 105262 RVA: 0x00728EA8 File Offset: 0x007270A8
private float CEIOGHINCMM(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 42f)
{
FKOFGIJFIKA -= 1428f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B2F RID: 105263 RVA: 0x00728EC0 File Offset: 0x007270C0
public void KCDOHFPDOHP(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B30 RID: 105264 RVA: 0x00728EF8 File Offset: 0x007270F8
public void FFOJLDLFLNG(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B31 RID: 105265 RVA: 0x00728F30 File Offset: 0x00727130
public void MMKLNELOIEP(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B32 RID: 105266 RVA: 0x00728F68 File Offset: 0x00727168
private float MBJPBOGIGLO(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 180f || num < -180f)
{
num = 360f - num;
}
return num;
}
// Token: 0x06019B33 RID: 105267 RVA: 0x00728F98 File Offset: 0x00727198
private void GAOLAABCLLJ()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.MNBNPBDLPCM(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.PCBIFNEOIKG(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.FJCAHJDFMIJ(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.CJECCFHBFNA(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.OOAMFJIPBMO(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.LHPMJFCANPN(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 1;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = false;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = false;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = true;
this.NCNHCLOIBJA = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodDown);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-121));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
this.NCNHCLOIBJA = true;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)61);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)67);
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-48));
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)114);
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B34 RID: 105268 RVA: 0x007296BC File Offset: 0x007278BC
private void OMKBNLGFNIL()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.BOAKLDANPPM(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B35 RID: 105269 RVA: 0x00729750 File Offset: 0x00727950
private void GEDEMEIJBGG()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.FJCAHJDFMIJ(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.KNBPGIBLHFI(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B36 RID: 105270 RVA: 0x007297E4 File Offset: 0x007279E4
public void CPOOKINGDEJ(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B37 RID: 105271 RVA: 0x0072981C File Offset: 0x00727A1C
private float FJCAHJDFMIJ(float FKOFGIJFIKA)
{
if (FKOFGIJFIKA > 836f)
{
FKOFGIJFIKA -= 78f;
}
return FKOFGIJFIKA;
}
// Token: 0x06019B38 RID: 105272 RVA: 0x00729834 File Offset: 0x00727A34
public void LHLLIABDBCK(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B39 RID: 105273 RVA: 0x0072986C File Offset: 0x00727A6C
private void AMCANMJHAEH()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.JDFOKHBLNAF(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.JPHILIHEDLA(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.MNPEALMMBHP(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B3A RID: 105274 RVA: 0x00729900 File Offset: 0x00727B00
public void LBOPPHLBCHG(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Remove(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B3B RID: 105275 RVA: 0x00729938 File Offset: 0x00727B38
public void LKFLBDKOKPO(Action<HeadGestureDetect.DMPPGHHPHGO> NOBAPCOKFIL)
{
Action<HeadGestureDetect.DMPPGHHPHGO> action = this.FAGOFNIBEBB;
Action<HeadGestureDetect.DMPPGHHPHGO> action2;
do
{
action2 = action;
action = Interlocked.CompareExchange<Action<HeadGestureDetect.DMPPGHHPHGO>>(ref this.FAGOFNIBEBB, (Action<HeadGestureDetect.DMPPGHHPHGO>)Delegate.Combine(action2, NOBAPCOKFIL), action);
}
while (action != action2);
}
// Token: 0x06019B3C RID: 105276 RVA: 0x00729970 File Offset: 0x00727B70
private void IOGPMJADEIB()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.JCLCPDEDEBL(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.FJCAHJDFMIJ(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.CEKHMABLOHK(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.MBJPBOGIGLO(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.JGBICCBGJGL(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.JGBICCBGJGL(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = true;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 1;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = true;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = false;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnRight);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = true;
this.NCNHCLOIBJA = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeLeft);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TurnLeft);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-49));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = false;
this.NCNHCLOIBJA = true;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)125);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)100);
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-53));
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = false;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)58);
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-18));
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B3D RID: 105277 RVA: 0x0072A094 File Offset: 0x00728294
private void KFAOLMFIFMH()
{
if (this.trackedHead == null)
{
this.trackedHead = base.transform;
}
this.AHNBFNEHMBD = this.KNIGLLOABCI(this.trackedHead.localEulerAngles.x);
this.OPADFOKKEGI = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.y);
this.DMECCFAGEFJ = this.JPHILIHEDLA(this.trackedHead.localEulerAngles.z);
this.GNCBFNEEEHI = Time.time;
}
// Token: 0x06019B3E RID: 105278 RVA: 0x0072A128 File Offset: 0x00728328
private void HNGBEOEJBFO()
{
this.OKNNJCADKDF = Time.time - this.GNCBFNEEEHI;
this.IOGNDEEKFHM = this.JPHILIHEDLA(this.trackedHead.localEulerAngles.x);
this.MIBPPNCHCOM = this.BOAKLDANPPM(this.trackedHead.localEulerAngles.y);
this.KONPMNFMJOF = this.EKJCKIMDCJE(this.trackedHead.localEulerAngles.z);
this.JBBMPAAFNON = this.JGBICCBGJGL(this.IOGNDEEKFHM, this.AHNBFNEHMBD);
this.PBAPGKIKPBB = this.PIIHLJLHCIF(this.MIBPPNCHCOM, this.OPADFOKKEGI);
this.IDHEIGEDFNN = this.OOAMFJIPBMO(this.KONPMNFMJOF, this.DMECCFAGEFJ);
if (this.HPHHEHFEABC && this.OKNNJCADKDF > this.timeOut)
{
this.HPHHEHFEABC = false;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.IDDJEKFLBEI && this.OKNNJCADKDF > this.timeOut)
{
this.IDDJEKFLBEI = true;
this.AHNBFNEHMBD = this.IOGNDEEKFHM;
return;
}
if (this.FEGPPKJNONL && this.OKNNJCADKDF > this.timeOut)
{
this.FEGPPKJNONL = true;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.DICBNJAEPMM && this.OKNNJCADKDF > this.timeOut)
{
this.DICBNJAEPMM = false;
this.OPADFOKKEGI = this.MIBPPNCHCOM;
return;
}
if (this.NNODNEKIJLO > 1 && this.OKNNJCADKDF > this.timeOut)
{
this.NNODNEKIJLO = 1;
}
if (this.EOHJLNAPAKO > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.EOHJLNAPAKO = 0;
}
if (this.FOLCOEKAMGF > 0 && this.OKNNJCADKDF > this.timeOut)
{
this.FOLCOEKAMGF = 1;
}
if (!this.HPHHEHFEABC && this.JBBMPAAFNON < -this.nodSensitivity)
{
this.HPHHEHFEABC = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.HPHHEHFEABC && this.JBBMPAAFNON > this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.HPHHEHFEABC = false;
this.ADJAGPKBBHI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (!this.IDDJEKFLBEI && this.JBBMPAAFNON > this.nodSensitivity)
{
this.IDDJEKFLBEI = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltDown);
}
}
if (this.IDDJEKFLBEI && this.JBBMPAAFNON < this.nodNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.IDDJEKFLBEI = false;
this.GNCBFNEEEHI = Time.time;
this.ADOPNFDBPCJ = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.TiltUp);
}
}
if (this.ADOPNFDBPCJ && this.ADJAGPKBBHI)
{
this.NNODNEKIJLO += 0;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
this.GNCBFNEEEHI = Time.time;
this.ADJAGPKBBHI = true;
this.ADOPNFDBPCJ = true;
}
if (!this.DICBNJAEPMM && this.PBAPGKIKPBB > this.shakeSensitivity)
{
this.DICBNJAEPMM = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
}
if (this.DICBNJAEPMM && this.PBAPGKIKPBB < this.shakeNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.DICBNJAEPMM = true;
this.NCNHCLOIBJA = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.FullNod);
}
}
if (!this.FEGPPKJNONL && this.PBAPGKIKPBB < -this.shakeSensitivity)
{
this.FEGPPKJNONL = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.ShakeRight);
}
}
if (this.FEGPPKJNONL && this.PBAPGKIKPBB > -this.shakeNeutralZone)
{
this.FEGPPKJNONL = true;
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.NodUp);
}
}
if (this.CEPKOILLAJA && this.NCNHCLOIBJA)
{
this.EOHJLNAPAKO++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-25));
}
this.GNCBFNEEEHI = Time.time;
this.CEPKOILLAJA = true;
this.NCNHCLOIBJA = false;
}
if (!this.CFCPOKPJOBB && this.IDHEIGEDFNN < -this.leanSensitivity)
{
this.CFCPOKPJOBB = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB(HeadGestureDetect.DMPPGHHPHGO.LeanRight);
}
}
if (this.CFCPOKPJOBB && this.IDHEIGEDFNN > this.leanNeutralZone && this.OKNNJCADKDF < this.timeOut)
{
this.CFCPOKPJOBB = false;
this.HLOLIDEJKEH = false;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)20);
}
}
if (!this.IMOPHGFGJCE && this.IDHEIGEDFNN > this.leanSensitivity)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)100);
}
}
if (this.IMOPHGFGJCE && this.IDHEIGEDFNN < this.leanNeutralZone)
{
this.IMOPHGFGJCE = true;
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = false;
if (this.DetailedDetection && this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)(-88));
}
}
if (this.HCLDLAFHFAL && this.HLOLIDEJKEH)
{
this.FOLCOEKAMGF++;
if (this.FAGOFNIBEBB != null)
{
this.FAGOFNIBEBB((HeadGestureDetect.DMPPGHHPHGO)41);
}
this.GNCBFNEEEHI = Time.time;
this.HCLDLAFHFAL = true;
this.HLOLIDEJKEH = false;
}
}
// Token: 0x06019B3F RID: 105279 RVA: 0x0072A84C File Offset: 0x00728A4C
private float LHPMJFCANPN(float FKOFGIJFIKA, float GNNBOMAEBGK)
{
float num = FKOFGIJFIKA - GNNBOMAEBGK;
if (num > 1051f || num < 902f)
{
num = 960f - num;
}
return num;
}
// Token: 0x040045CA RID: 17866
[SerializeField]
private float nodSensitivity = 10f;
// Token: 0x040045CB RID: 17867
[SerializeField]
private float shakeSensitivity = 10f;
// Token: 0x040045CC RID: 17868
[SerializeField]
private float leanSensitivity = 10f;
// Token: 0x040045CD RID: 17869
[SerializeField]
private float nodNeutralZone = 5f;
// Token: 0x040045CE RID: 17870
[SerializeField]
private float shakeNeutralZone = 5f;
// Token: 0x040045CF RID: 17871
[SerializeField]
private float leanNeutralZone = 5f;
// Token: 0x040045D0 RID: 17872
[SerializeField]
private float timeOut = 3f;
// Token: 0x040045D1 RID: 17873
[SerializeField]
private Transform trackedHead;
// Token: 0x040045D2 RID: 17874
[Tooltip("Enabling this will fire all the different gestures and not just the full gestures.")]
public bool DetailedDetection;
// Token: 0x040045D3 RID: 17875
private float OKNNJCADKDF;
// Token: 0x040045D4 RID: 17876
private float AHNBFNEHMBD;
// Token: 0x040045D5 RID: 17877
private float OPADFOKKEGI;
// Token: 0x040045D6 RID: 17878
private float DMECCFAGEFJ;
// Token: 0x040045D7 RID: 17879
private float IOGNDEEKFHM;
// Token: 0x040045D8 RID: 17880
private float MIBPPNCHCOM;
// Token: 0x040045D9 RID: 17881
private float KONPMNFMJOF;
// Token: 0x040045DA RID: 17882
private float GNCBFNEEEHI;
// Token: 0x040045DB RID: 17883
private bool HPHHEHFEABC;
// Token: 0x040045DC RID: 17884
private bool IDDJEKFLBEI;
// Token: 0x040045DD RID: 17885
private bool ADJAGPKBBHI;
// Token: 0x040045DE RID: 17886
private bool ADOPNFDBPCJ;
// Token: 0x040045DF RID: 17887
private bool FEGPPKJNONL;
// Token: 0x040045E0 RID: 17888
private bool DICBNJAEPMM;
// Token: 0x040045E1 RID: 17889
private bool CEPKOILLAJA;
// Token: 0x040045E2 RID: 17890
private bool NCNHCLOIBJA;
// Token: 0x040045E3 RID: 17891
private bool IMOPHGFGJCE;
// Token: 0x040045E4 RID: 17892
private bool CFCPOKPJOBB;
// Token: 0x040045E5 RID: 17893
private bool HCLDLAFHFAL;
// Token: 0x040045E6 RID: 17894
private bool HLOLIDEJKEH;
// Token: 0x040045E7 RID: 17895
private int NNODNEKIJLO;
// Token: 0x040045E8 RID: 17896
private int EOHJLNAPAKO;
// Token: 0x040045E9 RID: 17897
private int FOLCOEKAMGF;
// Token: 0x040045EA RID: 17898
private float JBBMPAAFNON;
// Token: 0x040045EB RID: 17899
private float PBAPGKIKPBB;
// Token: 0x040045EC RID: 17900
private float IDHEIGEDFNN;
// Token: 0x02000CA3 RID: 3235
public enum DMPPGHHPHGO
{
// Token: 0x040045EE RID: 17902
TiltUp,
// Token: 0x040045EF RID: 17903
TiltDown,
// Token: 0x040045F0 RID: 17904
NodUp,
// Token: 0x040045F1 RID: 17905
NodDown,
// Token: 0x040045F2 RID: 17906
FullNod,
// Token: 0x040045F3 RID: 17907
TurnLeft,
// Token: 0x040045F4 RID: 17908
TurnRight,
// Token: 0x040045F5 RID: 17909
ShakeLeft,
// Token: 0x040045F6 RID: 17910
ShakeRight,
// Token: 0x040045F7 RID: 17911
FullShake,
// Token: 0x040045F8 RID: 17912
LeanLeft,
// Token: 0x040045F9 RID: 17913
LeanRight,
// Token: 0x040045FA RID: 17914
NodLeft,
// Token: 0x040045FB RID: 17915
NodRight,
// Token: 0x040045FC RID: 17916
FullSideNod
}
}