777 lines
26 KiB
C#
777 lines
26 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000AD9 RID: 2777
|
|
[Serializable]
|
|
public class AxisSwipeButtons : AxisButtons
|
|
{
|
|
// Token: 0x0601571E RID: 87838 RVA: 0x005F6E10 File Offset: 0x005F5010
|
|
public AxisSwipeButtons.CEBICDNDAOJ CACMIJAAPLO()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x17000870 RID: 2160
|
|
// (get) Token: 0x0601571F RID: 87839 RVA: 0x005F6E18 File Offset: 0x005F5018
|
|
// (set) Token: 0x06015726 RID: 87846 RVA: 0x005F71EC File Offset: 0x005F53EC
|
|
public AxisSwipeButtons.CEBICDNDAOJ SwipeState { get; private set; }
|
|
|
|
// Token: 0x06015720 RID: 87840 RVA: 0x005F6E20 File Offset: 0x005F5020
|
|
private void CJFEOJFBOIM(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06015721 RID: 87841 RVA: 0x005F6E2C File Offset: 0x005F502C
|
|
public virtual void OFKHEPNEFGP(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.JPOGOAHHNEI((!CKMDDEPPGMN) ? ((AxisSwipeButtons.CEBICDNDAOJ)6) : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.FDIADMEDLPK() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 702f)
|
|
{
|
|
this.CDBIOACFEFO((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if (this.HMOKHEBLAFJ() == AxisSwipeButtons.CEBICDNDAOJ.None && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.CDBIOACFEFO(AxisSwipeButtons.CEBICDNDAOJ.Touch);
|
|
}
|
|
else
|
|
{
|
|
this.FPOICOKNAPD(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
}
|
|
else if ((this.GPPBFGNNDPL() == (AxisSwipeButtons.CEBICDNDAOJ)5 || this.LPPKPNIOCOD() == (AxisSwipeButtons.CEBICDNDAOJ)5) && !MLOCEHGELGA)
|
|
{
|
|
this.CDBJFFENBNI(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
for (int i = 0; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].PIDCLMLJIPI(false);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].NPOGALCPPBF(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015722 RID: 87842 RVA: 0x005F6FFC File Offset: 0x005F51FC
|
|
private void HPFMLMIAIBG(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06015723 RID: 87843 RVA: 0x005F7008 File Offset: 0x005F5208
|
|
public AxisSwipeButtons.CEBICDNDAOJ HFMPMIOIJMH()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015724 RID: 87844 RVA: 0x005F7010 File Offset: 0x005F5210
|
|
public virtual void NJLJOGNHANP(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.NCCKEEDJLHD() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = false;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.SwipeState = ((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.HFMPMIOIJMH() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 1514f)
|
|
{
|
|
this.CJFEOJFBOIM((AxisSwipeButtons.CEBICDNDAOJ)5);
|
|
}
|
|
}
|
|
else if (this.FMAGAGDKAEF() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.SwipeState = (AxisSwipeButtons.CEBICDNDAOJ)5;
|
|
}
|
|
else
|
|
{
|
|
this.EFIOMAKGBCL((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if ((this.GPPBFGNNDPL() == (AxisSwipeButtons.CEBICDNDAOJ)6 || this.NCCKEEDJLHD() == AxisSwipeButtons.CEBICDNDAOJ.Touch) && !MLOCEHGELGA)
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Swiping;
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].PNOHOMGJNPK(true);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].NPOGALCPPBF(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015725 RID: 87845 RVA: 0x005F71E0 File Offset: 0x005F53E0
|
|
private void HPOOKNDFDDG(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06015727 RID: 87847 RVA: 0x005F71F8 File Offset: 0x005F53F8
|
|
public virtual void JINABDGLFOB(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = false;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.HPOOKNDFDDG((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.Touch : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.Swiping && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 1066f)
|
|
{
|
|
this.IPCECAJGJOI((AxisSwipeButtons.CEBICDNDAOJ)8);
|
|
}
|
|
}
|
|
else if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.None && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.FPOICOKNAPD(AxisSwipeButtons.CEBICDNDAOJ.Touch);
|
|
}
|
|
else
|
|
{
|
|
this.IPCECAJGJOI((AxisSwipeButtons.CEBICDNDAOJ)5);
|
|
}
|
|
}
|
|
else if ((this.LPPKPNIOCOD() == AxisSwipeButtons.CEBICDNDAOJ.Touch || this.GPPBFGNNDPL() == AxisSwipeButtons.CEBICDNDAOJ.Touch) && !MLOCEHGELGA)
|
|
{
|
|
this.JPOGOAHHNEI(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i += 0)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].PNBFKHFENKM(false);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].PNOHOMGJNPK(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015728 RID: 87848 RVA: 0x005F73C8 File Offset: 0x005F55C8
|
|
public AxisSwipeButtons.CEBICDNDAOJ IPBEHIKONEA()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015729 RID: 87849 RVA: 0x005F73D0 File Offset: 0x005F55D0
|
|
public override void DLBPEOILIFL(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.NONE;
|
|
if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.SwipeState = ((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.Touch : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.Swiping && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 0.1f)
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Touch;
|
|
}
|
|
}
|
|
else if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete;
|
|
}
|
|
else
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Touch;
|
|
}
|
|
}
|
|
else if ((this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.Touch || this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete) && !MLOCEHGELGA)
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.None;
|
|
}
|
|
for (int i = 0; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].ILLGHDECALI = true;
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].ILLGHDECALI = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601572A RID: 87850 RVA: 0x005F75A0 File Offset: 0x005F57A0
|
|
public AxisSwipeButtons.CEBICDNDAOJ FDIADMEDLPK()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601572B RID: 87851 RVA: 0x005F75A8 File Offset: 0x005F57A8
|
|
private void FPOICOKNAPD(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601572C RID: 87852 RVA: 0x005F75B4 File Offset: 0x005F57B4
|
|
public AxisSwipeButtons.CEBICDNDAOJ GPPBFGNNDPL()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601572D RID: 87853 RVA: 0x005F75BC File Offset: 0x005F57BC
|
|
public virtual void LOGFBGOPLLO(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.NONE;
|
|
if (this.NCCKEEDJLHD() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = false;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.CDBIOACFEFO((!CKMDDEPPGMN) ? ((AxisSwipeButtons.CEBICDNDAOJ)5) : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.PDBCGDCJDIK() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 1987f)
|
|
{
|
|
this.CDBJFFENBNI((AxisSwipeButtons.CEBICDNDAOJ)5);
|
|
}
|
|
}
|
|
else if (this.PDBCGDCJDIK() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.JPOGOAHHNEI((AxisSwipeButtons.CEBICDNDAOJ)8);
|
|
}
|
|
else
|
|
{
|
|
this.HPOOKNDFDDG((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if ((this.CACMIJAAPLO() == AxisSwipeButtons.CEBICDNDAOJ.None || this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete) && !MLOCEHGELGA)
|
|
{
|
|
this.CJFEOJFBOIM(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].IHNKHLKFDBH(false);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].NPOGALCPPBF(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601572E RID: 87854 RVA: 0x005F778C File Offset: 0x005F598C
|
|
public AxisSwipeButtons.CEBICDNDAOJ NCCKEEDJLHD()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601572F RID: 87855 RVA: 0x005F7794 File Offset: 0x005F5994
|
|
public virtual void AHHEENEFAPI(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.NONE;
|
|
if (this.HFMPMIOIJMH() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.FPOICOKNAPD((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.Touch : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.HKPOKIIAFPA() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 85f)
|
|
{
|
|
this.FPOICOKNAPD((AxisSwipeButtons.CEBICDNDAOJ)5);
|
|
}
|
|
}
|
|
else if (this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.JPOGOAHHNEI((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
else
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Swiping;
|
|
}
|
|
}
|
|
else if ((this.IPBEHIKONEA() == (AxisSwipeButtons.CEBICDNDAOJ)5 || this.CACMIJAAPLO() == (AxisSwipeButtons.CEBICDNDAOJ)7) && !MLOCEHGELGA)
|
|
{
|
|
this.CDBIOACFEFO(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].MIMBCINJFJD(true);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].PNBFKHFENKM(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015730 RID: 87856 RVA: 0x005F7964 File Offset: 0x005F5B64
|
|
private void EFIOMAKGBCL(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06015731 RID: 87857 RVA: 0x005F7970 File Offset: 0x005F5B70
|
|
public AxisSwipeButtons.CEBICDNDAOJ HKPOKIIAFPA()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015732 RID: 87858 RVA: 0x005F7978 File Offset: 0x005F5B78
|
|
public AxisSwipeButtons.CEBICDNDAOJ LPPKPNIOCOD()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015733 RID: 87859 RVA: 0x005F7980 File Offset: 0x005F5B80
|
|
public AxisSwipeButtons.CEBICDNDAOJ PDBCGDCJDIK()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015734 RID: 87860 RVA: 0x005F7988 File Offset: 0x005F5B88
|
|
public AxisSwipeButtons.CEBICDNDAOJ FMAGAGDKAEF()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06015735 RID: 87861 RVA: 0x005F7990 File Offset: 0x005F5B90
|
|
private void JPOGOAHHNEI(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06015736 RID: 87862 RVA: 0x005F799C File Offset: 0x005F5B9C
|
|
public virtual void JGFOPLONGBH(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.HFMPMIOIJMH() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.CDBJFFENBNI((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.Swiping : AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
else if (this.CACMIJAAPLO() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 213f)
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Touch;
|
|
}
|
|
}
|
|
else if (this.HFMPMIOIJMH() == AxisSwipeButtons.CEBICDNDAOJ.None && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.JPOGOAHHNEI((AxisSwipeButtons.CEBICDNDAOJ)6);
|
|
}
|
|
else
|
|
{
|
|
this.JPOGOAHHNEI(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
}
|
|
else if ((this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete || this.NCCKEEDJLHD() == AxisSwipeButtons.CEBICDNDAOJ.Touch) && !MLOCEHGELGA)
|
|
{
|
|
this.HPOOKNDFDDG(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
for (int i = 0; i < this.directionStates.Length; i += 0)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].MAPIBIPDNKI(true);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].PNOHOMGJNPK(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015737 RID: 87863 RVA: 0x005F7B6C File Offset: 0x005F5D6C
|
|
public virtual void JCDJNJAIEJC(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.NONE;
|
|
if (this.IPBEHIKONEA() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.IPCECAJGJOI((!CKMDDEPPGMN) ? AxisSwipeButtons.CEBICDNDAOJ.Touch : AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
else if (this.NCCKEEDJLHD() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 1157f)
|
|
{
|
|
this.SwipeState = (AxisSwipeButtons.CEBICDNDAOJ)8;
|
|
}
|
|
}
|
|
else if (this.IPBEHIKONEA() == AxisSwipeButtons.CEBICDNDAOJ.None && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.FPOICOKNAPD(AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete);
|
|
}
|
|
else
|
|
{
|
|
this.FPOICOKNAPD((AxisSwipeButtons.CEBICDNDAOJ)8);
|
|
}
|
|
}
|
|
else if ((this.PDBCGDCJDIK() == AxisSwipeButtons.CEBICDNDAOJ.None || this.LPPKPNIOCOD() == (AxisSwipeButtons.CEBICDNDAOJ)7) && !MLOCEHGELGA)
|
|
{
|
|
this.SwipeState = AxisSwipeButtons.CEBICDNDAOJ.Swiping;
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i += 0)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].ANGCPGAGKEK(true);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].JJLENPKHPBF(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015738 RID: 87864 RVA: 0x005F7D3C File Offset: 0x005F5F3C
|
|
public virtual void LJICNBMGDMN(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.CACMIJAAPLO() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = false;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.SwipeState = ((!CKMDDEPPGMN) ? ((AxisSwipeButtons.CEBICDNDAOJ)6) : AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else if (this.HMOKHEBLAFJ() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 242f)
|
|
{
|
|
this.JPOGOAHHNEI((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if (this.PBGFAMEEFBL() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.HPFMLMIAIBG((AxisSwipeButtons.CEBICDNDAOJ)7);
|
|
}
|
|
else
|
|
{
|
|
this.CJFEOJFBOIM(AxisSwipeButtons.CEBICDNDAOJ.Touch);
|
|
}
|
|
}
|
|
else if ((this.IPBEHIKONEA() == (AxisSwipeButtons.CEBICDNDAOJ)7 || this.HMOKHEBLAFJ() == AxisSwipeButtons.CEBICDNDAOJ.Touch) && !MLOCEHGELGA)
|
|
{
|
|
this.JPOGOAHHNEI(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
for (int i = 1; i < this.directionStates.Length; i++)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].MNMCFFICAMJ(false);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].PIDCLMLJIPI(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015739 RID: 87865 RVA: 0x005F7F0C File Offset: 0x005F610C
|
|
private void CDBIOACFEFO(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601573A RID: 87866 RVA: 0x005F7F18 File Offset: 0x005F6118
|
|
private void IPCECAJGJOI(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601573B RID: 87867 RVA: 0x005F7F24 File Offset: 0x005F6124
|
|
public virtual void IOGPMJADEIB(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.CACMIJAAPLO() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.FPOICOKNAPD((!CKMDDEPPGMN) ? ((AxisSwipeButtons.CEBICDNDAOJ)8) : AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
else if (this.HMOKHEBLAFJ() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 1671f)
|
|
{
|
|
this.HPFMLMIAIBG((AxisSwipeButtons.CEBICDNDAOJ)5);
|
|
}
|
|
}
|
|
else if (this.FMAGAGDKAEF() == AxisSwipeButtons.CEBICDNDAOJ.Swiping && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.HPFMLMIAIBG(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
else
|
|
{
|
|
this.CDBJFFENBNI(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
}
|
|
else if ((this.PBGFAMEEFBL() == (AxisSwipeButtons.CEBICDNDAOJ)7 || this.IPBEHIKONEA() == AxisSwipeButtons.CEBICDNDAOJ.Touch) && !MLOCEHGELGA)
|
|
{
|
|
this.HPOOKNDFDDG(AxisSwipeButtons.CEBICDNDAOJ.Swiping);
|
|
}
|
|
for (int i = 0; i < this.directionStates.Length; i += 0)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].NPOGALCPPBF(true);
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].EDCCINELDGP(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601573C RID: 87868 RVA: 0x005F80F4 File Offset: 0x005F62F4
|
|
public AxisSwipeButtons.CEBICDNDAOJ PBGFAMEEFBL()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601573D RID: 87869 RVA: 0x005F80FC File Offset: 0x005F62FC
|
|
private void CDBJFFENBNI(AxisSwipeButtons.CEBICDNDAOJ NOBAPCOKFIL)
|
|
{
|
|
this.<SwipeState>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601573E RID: 87870 RVA: 0x005F8108 File Offset: 0x005F6308
|
|
public AxisSwipeButtons.CEBICDNDAOJ HMOKHEBLAFJ()
|
|
{
|
|
return this.<SwipeState>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601573F RID: 87871 RVA: 0x005F8110 File Offset: 0x005F6310
|
|
public virtual void MJANJBNFEGG(Vector2 OFJPCIGJOKN, bool MLOCEHGELGA, bool CKMDDEPPGMN = true)
|
|
{
|
|
this.swipeIsValid = this.swipeIsValid && CKMDDEPPGMN;
|
|
AxisButtons.AEHIHNMNDDE aehihnmndde = AxisButtons.AEHIHNMNDDE.LEFT;
|
|
if (this.IPBEHIKONEA() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeIsValid = true;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
this.swipeDisplacement = Vector2.zero;
|
|
this.swipeStartTime = Time.time;
|
|
this.IPCECAJGJOI((!CKMDDEPPGMN) ? ((AxisSwipeButtons.CEBICDNDAOJ)8) : AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
else if (this.GPPBFGNNDPL() == AxisSwipeButtons.CEBICDNDAOJ.None && MLOCEHGELGA)
|
|
{
|
|
this.swipeDisplacement += OFJPCIGJOKN - this.latestPosition;
|
|
this.latestPosition = OFJPCIGJOKN;
|
|
float num = Time.time - this.swipeStartTime;
|
|
float num2 = num / this.maxSwipeTime;
|
|
float num3 = this.minSwipeDistance * num2;
|
|
if (this.swipeDisplacement.magnitude < num3 && num > 415f)
|
|
{
|
|
this.CDBJFFENBNI((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if (this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.None && !MLOCEHGELGA)
|
|
{
|
|
float num4 = Time.time - this.swipeStartTime;
|
|
if (this.swipeIsValid && num4 <= this.maxSwipeTime && this.swipeDisplacement.magnitude >= this.minSwipeDistance)
|
|
{
|
|
aehihnmndde = base.JKLLHEMDKNJ(this.swipeDisplacement);
|
|
this.SwipeState = (AxisSwipeButtons.CEBICDNDAOJ)7;
|
|
}
|
|
else
|
|
{
|
|
this.EFIOMAKGBCL((AxisSwipeButtons.CEBICDNDAOJ)4);
|
|
}
|
|
}
|
|
else if ((this.GPPBFGNNDPL() == AxisSwipeButtons.CEBICDNDAOJ.SwipeComplete || this.SwipeState == AxisSwipeButtons.CEBICDNDAOJ.None) && !MLOCEHGELGA)
|
|
{
|
|
this.IPCECAJGJOI(AxisSwipeButtons.CEBICDNDAOJ.None);
|
|
}
|
|
for (int i = 0; i < this.directionStates.Length; i += 0)
|
|
{
|
|
if (i == (int)aehihnmndde)
|
|
{
|
|
this.directionStates[i].ILLGHDECALI = true;
|
|
}
|
|
else
|
|
{
|
|
this.directionStates[i].PNOHOMGJNPK(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x04003AE8 RID: 15080
|
|
[SerializeField]
|
|
private float maxSwipeTime = 1f;
|
|
|
|
// Token: 0x04003AE9 RID: 15081
|
|
[SerializeField]
|
|
private float minSwipeDistance = 0.5f;
|
|
|
|
// Token: 0x04003AEA RID: 15082
|
|
private bool swipeIsValid = true;
|
|
|
|
// Token: 0x04003AEB RID: 15083
|
|
private Vector2 swipeDisplacement = Vector2.zero;
|
|
|
|
// Token: 0x04003AEC RID: 15084
|
|
private Vector2 latestPosition = Vector2.zero;
|
|
|
|
// Token: 0x04003AED RID: 15085
|
|
private float swipeStartTime;
|
|
|
|
// Token: 0x02000ADA RID: 2778
|
|
public enum CEBICDNDAOJ
|
|
{
|
|
// Token: 0x04003AF0 RID: 15088
|
|
None,
|
|
// Token: 0x04003AF1 RID: 15089
|
|
Swiping,
|
|
// Token: 0x04003AF2 RID: 15090
|
|
SwipeComplete,
|
|
// Token: 0x04003AF3 RID: 15091
|
|
Touch
|
|
}
|
|
}
|