Files
2026-04-10 22:50:51 +02:00

136 lines
3.6 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x020000D6 RID: 214
[Token(Token = "0x20000D6")]
public class AutoHeightAdjust : MonoBehaviour
{
// Token: 0x06000578 RID: 1400 RVA: 0x0001C8E0 File Offset: 0x0001AAE0
[Token(Token = "0x6000578")]
[Address(RVA = "0x13C9A90", Offset = "0x13C8890", VA = "0x1813C9A90")]
private void Awake()
{
Transform transform = this.transformToMove;
Vector3 vector;
float y = vector.y;
this.DNBPGIBIPAF = y;
}
// Token: 0x06000579 RID: 1401 RVA: 0x0001C908 File Offset: 0x0001AB08
[Token(Token = "0x6000579")]
[Address(RVA = "0x16AD520", Offset = "0x16AC320", VA = "0x1816AD520")]
private void Update()
{
if (SingletonMonoBehaviour.FFNIFALJLDD)
{
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.CHLMFLCFGFL.transform;
float num = this.DNBPGIBIPAF;
this.JBDKEMKBADI = true;
this.DNBPGIBIPAF = (float)0;
float time = Time.time;
Transform transform2 = this.transformToMove;
this.LMEIDGDPENO = time;
Vector3 vector;
float y = vector.y;
this.DJHKLPIKHOG = y;
if (this.JBDKEMKBADI)
{
float time2 = Time.time;
float num2 = this.animationDuration;
if (time2 >= num2)
{
float dnbpgibipaf = this.DNBPGIBIPAF;
this.HGOHNHFILMP(dnbpgibipaf);
this.JBDKEMKBADI = false;
return;
}
AnimationCurve animationCurve = this.curve;
num2 = time2;
float num3 = animationCurve.Evaluate(num2);
num = num3;
num2 = Mathf.Lerp(num3, num2, num);
this.HGOHNHFILMP(num2);
}
}
}
// Token: 0x0600057A RID: 1402 RVA: 0x0001C9DC File Offset: 0x0001ABDC
[Token(Token = "0x600057A")]
[Address(RVA = "0x13C9AD0", Offset = "0x13C88D0", VA = "0x1813C9AD0")]
private void EMCHLEPKJJC(float DHKAFIELOKC)
{
this.DNBPGIBIPAF = DHKAFIELOKC;
this.JBDKEMKBADI = true;
float time = Time.time;
Transform transform = this.transformToMove;
this.LMEIDGDPENO = time;
Vector3 vector;
float y = vector.y;
this.DJHKLPIKHOG = y;
}
// Token: 0x0600057B RID: 1403 RVA: 0x0001CA24 File Offset: 0x0001AC24
[Token(Token = "0x600057B")]
[Address(RVA = "0x16AD490", Offset = "0x16AC290", VA = "0x1816AD490")]
private void HGOHNHFILMP(float IOGAEBGAFEC)
{
Transform transform = this.transformToMove;
Transform transform2 = this.transformToMove;
Vector3 vector;
float z = vector.z;
}
// Token: 0x0600057C RID: 1404 RVA: 0x0001CA4C File Offset: 0x0001AC4C
[Token(Token = "0x600057C")]
[Address(RVA = "0x13C9E40", Offset = "0x13C8C40", VA = "0x1813C9E40")]
public AutoHeightAdjust()
{
}
// Token: 0x04000487 RID: 1159
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000487")]
public Transform transformToMove;
// Token: 0x04000488 RID: 1160
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000488")]
public AnimationCurve curve;
// Token: 0x04000489 RID: 1161
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000489")]
public float animationDuration = 1f;
// Token: 0x0400048A RID: 1162
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x400048A")]
public float idealDistance = 0.6f;
// Token: 0x0400048B RID: 1163
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400048B")]
public float acceptableError = 0.1f;
// Token: 0x0400048C RID: 1164
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x400048C")]
private bool JBDKEMKBADI;
// Token: 0x0400048D RID: 1165
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400048D")]
private float DNBPGIBIPAF;
// Token: 0x0400048E RID: 1166
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x400048E")]
private float LMEIDGDPENO;
// Token: 0x0400048F RID: 1167
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400048F")]
private float DJHKLPIKHOG;
}