scripts
This commit is contained in:
@@ -0,0 +1,496 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x020000FE RID: 254
|
||||
public class AutoHeightAdjust : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600336E RID: 13166 RVA: 0x00101418 File Offset: 0x000FF618
|
||||
private void DKBOOCBJOLO(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = false;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600336F RID: 13167 RVA: 0x00101458 File Offset: 0x000FF658
|
||||
private void MICFHMAIGIB()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003370 RID: 13168 RVA: 0x0010148C File Offset: 0x000FF68C
|
||||
private void MDCNOIALLAF()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.DKBOOCBJOLO(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.LOIDGLEHGNF(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.HLMPIOBEGCA(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003371 RID: 13169 RVA: 0x00101550 File Offset: 0x000FF750
|
||||
private void CJDFMFPIFDB()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.DAMCOGLAMOF(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.HLMPIOBEGCA(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.GNHIOOKBLGP(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003372 RID: 13170 RVA: 0x00101614 File Offset: 0x000FF814
|
||||
private void LDKKDFIHEHI(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003373 RID: 13171 RVA: 0x00101644 File Offset: 0x000FF844
|
||||
private void FCPJBDBGJIL(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003374 RID: 13172 RVA: 0x00101674 File Offset: 0x000FF874
|
||||
private void GKLLIMDGMDK(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003375 RID: 13173 RVA: 0x001016B4 File Offset: 0x000FF8B4
|
||||
private void NMONPJFAEOF(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003376 RID: 13174 RVA: 0x001016E4 File Offset: 0x000FF8E4
|
||||
private void CJEJDNNJJGA(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003377 RID: 13175 RVA: 0x00101714 File Offset: 0x000FF914
|
||||
private void Awake()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003378 RID: 13176 RVA: 0x00101748 File Offset: 0x000FF948
|
||||
private void OLEBPMMFNIF()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003379 RID: 13177 RVA: 0x0010177C File Offset: 0x000FF97C
|
||||
private void PAKPLLPDIOG()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600337A RID: 13178 RVA: 0x001017B0 File Offset: 0x000FF9B0
|
||||
private void HLMPIOBEGCA(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x0600337B RID: 13179 RVA: 0x001017E0 File Offset: 0x000FF9E0
|
||||
private void AEPJKNNODBI(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600337C RID: 13180 RVA: 0x00101820 File Offset: 0x000FFA20
|
||||
private void ECAJHHIGDNP(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600337D RID: 13181 RVA: 0x00101860 File Offset: 0x000FFA60
|
||||
private void ENGNDJADBDF()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.DAAKONOFDAB(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.OBFHBPNFPHC(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.FCPJBDBGJIL(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600337E RID: 13182 RVA: 0x00101924 File Offset: 0x000FFB24
|
||||
private void JHNNOHJKEJK(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600337F RID: 13183 RVA: 0x00101964 File Offset: 0x000FFB64
|
||||
private void DLIIOFOCPHG()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.PBEICOCBMGN(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.LDKKDFIHEHI(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.OBFHBPNFPHC(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003380 RID: 13184 RVA: 0x00101A28 File Offset: 0x000FFC28
|
||||
private void LOIDGLEHGNF(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003381 RID: 13185 RVA: 0x00101A58 File Offset: 0x000FFC58
|
||||
private void NKKKHBAGEJH()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.GKLLIMDGMDK(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.LOIDGLEHGNF(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.FCPJBDBGJIL(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003382 RID: 13186 RVA: 0x00101B1C File Offset: 0x000FFD1C
|
||||
private void BLDGKCBDHGE(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003383 RID: 13187 RVA: 0x00101B4C File Offset: 0x000FFD4C
|
||||
private void FJMPOJIBGAK(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003384 RID: 13188 RVA: 0x00101B7C File Offset: 0x000FFD7C
|
||||
private void MHDFIOMCCMO()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.NODJIOIOCCA(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.CJEJDNNJJGA(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.CJEJDNNJJGA(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003385 RID: 13189 RVA: 0x00101C40 File Offset: 0x000FFE40
|
||||
private void NEFFCEJLOCD()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.GKLLIMDGMDK(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.FCPJBDBGJIL(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.GNHIOOKBLGP(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06003386 RID: 13190 RVA: 0x00101D04 File Offset: 0x000FFF04
|
||||
private void OBFHBPNFPHC(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003387 RID: 13191 RVA: 0x00101D34 File Offset: 0x000FFF34
|
||||
private void DAMCOGLAMOF(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = false;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003388 RID: 13192 RVA: 0x00101D74 File Offset: 0x000FFF74
|
||||
private void NODJIOIOCCA(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003389 RID: 13193 RVA: 0x00101DB4 File Offset: 0x000FFFB4
|
||||
private void Update()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.NODJIOIOCCA(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.GNHIOOKBLGP(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.GNHIOOKBLGP(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600338A RID: 13194 RVA: 0x00101E78 File Offset: 0x00100078
|
||||
private void PAOICLEOIJE(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x0600338B RID: 13195 RVA: 0x00101EA8 File Offset: 0x001000A8
|
||||
private void AHLMADACOLB()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600338C RID: 13196 RVA: 0x00101EDC File Offset: 0x001000DC
|
||||
private void IOKIFHGPMKI()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600338D RID: 13197 RVA: 0x00101F10 File Offset: 0x00100110
|
||||
private void DLCHNOFPONJ()
|
||||
{
|
||||
this.IIIKHPDLCJH = Camera.main;
|
||||
this.LLPEIGOHBKN = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600338E RID: 13198 RVA: 0x00101F44 File Offset: 0x00100144
|
||||
private void PKKOKHACBCE()
|
||||
{
|
||||
float y = this.IIIKHPDLCJH.transform.position.y;
|
||||
float num = y - this.LLPEIGOHBKN;
|
||||
if (Mathf.Abs(num - this.idealDistance) > this.acceptableError)
|
||||
{
|
||||
this.GKLLIMDGMDK(y - this.idealDistance);
|
||||
}
|
||||
if (this.DNIFNHCBCNH)
|
||||
{
|
||||
float num2 = Time.time - this.KOOCIGONPFM;
|
||||
if (num2 >= this.animationDuration)
|
||||
{
|
||||
this.BLDGKCBDHGE(this.LLPEIGOHBKN);
|
||||
this.DNIFNHCBCNH = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
float num3 = this.curve.Evaluate(num2 / this.animationDuration);
|
||||
float num4 = Mathf.Lerp(this.PJJAGNEFCAP, this.LLPEIGOHBKN, num3);
|
||||
this.PAOICLEOIJE(num4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600338F RID: 13199 RVA: 0x00102008 File Offset: 0x00100208
|
||||
private void PBEICOCBMGN(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = true;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x06003391 RID: 13201 RVA: 0x00102074 File Offset: 0x00100274
|
||||
private void PLIAAMFCEIB(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003392 RID: 13202 RVA: 0x001020A4 File Offset: 0x001002A4
|
||||
private void GNHIOOKBLGP(float LIEKMHHPBJE)
|
||||
{
|
||||
Vector3 position = this.transformToMove.position;
|
||||
position.y = LIEKMHHPBJE;
|
||||
this.transformToMove.position = position;
|
||||
}
|
||||
|
||||
// Token: 0x06003393 RID: 13203 RVA: 0x001020D4 File Offset: 0x001002D4
|
||||
private void DAAKONOFDAB(float LIFJGBPBJNP)
|
||||
{
|
||||
this.LLPEIGOHBKN = LIFJGBPBJNP;
|
||||
this.DNIFNHCBCNH = false;
|
||||
this.KOOCIGONPFM = Time.time;
|
||||
this.PJJAGNEFCAP = this.transformToMove.position.y;
|
||||
}
|
||||
|
||||
// Token: 0x040006AC RID: 1708
|
||||
public Transform transformToMove;
|
||||
|
||||
// Token: 0x040006AD RID: 1709
|
||||
public AnimationCurve curve;
|
||||
|
||||
// Token: 0x040006AE RID: 1710
|
||||
public float animationDuration = 1f;
|
||||
|
||||
// Token: 0x040006AF RID: 1711
|
||||
public float idealDistance = 0.6f;
|
||||
|
||||
// Token: 0x040006B0 RID: 1712
|
||||
public float acceptableError = 0.1f;
|
||||
|
||||
// Token: 0x040006B1 RID: 1713
|
||||
private Camera IIIKHPDLCJH;
|
||||
|
||||
// Token: 0x040006B2 RID: 1714
|
||||
private bool DNIFNHCBCNH;
|
||||
|
||||
// Token: 0x040006B3 RID: 1715
|
||||
private float LLPEIGOHBKN;
|
||||
|
||||
// Token: 0x040006B4 RID: 1716
|
||||
private float KOOCIGONPFM;
|
||||
|
||||
// Token: 0x040006B5 RID: 1717
|
||||
private float PJJAGNEFCAP;
|
||||
}
|
||||
Reference in New Issue
Block a user