192 lines
7.6 KiB
C#
192 lines
7.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
// Token: 0x020004B7 RID: 1207
|
|
[Token(Token = "0x20004B7")]
|
|
public class PhysicsButtonVisual : MonoBehaviour
|
|
{
|
|
// Token: 0x060023D1 RID: 9169 RVA: 0x0008FDE8 File Offset: 0x0008DFE8
|
|
[Token(Token = "0x60023D1")]
|
|
[Address(RVA = "0x12F9780", Offset = "0x12F8780", VA = "0x1812F9780")]
|
|
private void Awake()
|
|
{
|
|
Rigidbody component = base.GetComponent<Rigidbody>();
|
|
this.EELOMEPLLID = component;
|
|
Collider component2 = base.GetComponent<Collider>();
|
|
Transform transform = this.pressedTransform;
|
|
this.GMJANNPJBOF = component2;
|
|
Transform transform2 = this.unpressedTransform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Vector3 vector2;
|
|
float z2 = vector2.z;
|
|
Vector3 vector3;
|
|
float z3 = vector3.z;
|
|
Transform transform3 = this.unpressedTransform;
|
|
Rigidbody eelomepllid = this.EELOMEPLLID;
|
|
Vector3 vector4;
|
|
float z4 = vector4.z;
|
|
this.BAKFCIADPIP.z = z4;
|
|
Vector3 vector5;
|
|
float z5 = vector5.z;
|
|
Rigidbody eelomepllid2 = this.EELOMEPLLID;
|
|
float z6 = Vector3.zero.z;
|
|
PhysicalButtonBase.PhysicalButtonPressEvent pressEvent = this.parentButton.pressEvent;
|
|
UnityAction<PhysicalButtonBase, Player> unityAction = new UnityAction(this.DFJBKCHBHME);
|
|
pressEvent.AddListener(unityAction);
|
|
PhysicalButtonBase.PhysicalButtonStateEvent onReleaseEvent = this.parentButton.onReleaseEvent;
|
|
UnityAction<PhysicalButtonBase.MJMLDNKNIIM, Player> unityAction2 = new UnityAction(this.PLCJLOCIDJA);
|
|
onReleaseEvent.AddListener(unityAction2);
|
|
}
|
|
|
|
// Token: 0x060023D2 RID: 9170 RVA: 0x0008FED0 File Offset: 0x0008E0D0
|
|
[Token(Token = "0x60023D2")]
|
|
[Address(RVA = "0x12FA2A0", Offset = "0x12F92A0", VA = "0x1812FA2A0")]
|
|
private void OnDestroy()
|
|
{
|
|
PhysicalButtonBase physicalButtonBase = this.parentButton;
|
|
int num = 0;
|
|
if (physicalButtonBase != num)
|
|
{
|
|
PhysicalButtonBase.PhysicalButtonPressEvent pressEvent = this.parentButton.pressEvent;
|
|
UnityAction<PhysicalButtonBase, Player> unityAction = new UnityAction(this.DFJBKCHBHME);
|
|
pressEvent.RemoveListener(unityAction);
|
|
PhysicalButtonBase.PhysicalButtonStateEvent onReleaseEvent = this.parentButton.onReleaseEvent;
|
|
UnityAction<PhysicalButtonBase.MJMLDNKNIIM, Player> unityAction2 = new UnityAction(this.PLCJLOCIDJA);
|
|
onReleaseEvent.RemoveListener(unityAction2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060023D3 RID: 9171 RVA: 0x0008FF3C File Offset: 0x0008E13C
|
|
[Token(Token = "0x60023D3")]
|
|
[Address(RVA = "0x12F9A00", Offset = "0x12F8A00", VA = "0x1812F9A00")]
|
|
private void DFJBKCHBHME(PhysicalButtonBase AKBHFOFHHNK, Player EEMNAFPPPIK)
|
|
{
|
|
PhysicalButtonBase physicalButtonBase = this.parentButton;
|
|
AGAJMBPABDL agajmbpabdl;
|
|
this.FIBHBBIOCFP = agajmbpabdl;
|
|
}
|
|
|
|
// Token: 0x060023D4 RID: 9172 RVA: 0x0008FF60 File Offset: 0x0008E160
|
|
[Token(Token = "0x60023D4")]
|
|
[Address(RVA = "0x12FA3C0", Offset = "0x12F93C0", VA = "0x1812FA3C0")]
|
|
private void PLCJLOCIDJA(PhysicalButtonBase.MJMLDNKNIIM GKNIHNHGBKC, Player EEMNAFPPPIK)
|
|
{
|
|
this.HHAIHKMMGHK = true;
|
|
}
|
|
|
|
// Token: 0x060023D5 RID: 9173 RVA: 0x0008FF74 File Offset: 0x0008E174
|
|
[Token(Token = "0x60023D5")]
|
|
[Address(RVA = "0x12F9A30", Offset = "0x12F8A30", VA = "0x1812F9A30")]
|
|
private void FixedUpdate()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060023D5)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void PhysicsButtonVisual::FixedUpdate()
|
|
|
|
---> System.ArgumentOutOfRangeException: length ('-1') must be a non-negative value. (Parameter 'length')
|
|
Actual value was -1.
|
|
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
|
|
at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
|
|
at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
|
|
at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 403
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 117
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060023D6 RID: 9174 RVA: 0x00090168 File Offset: 0x0008E368
|
|
[Token(Token = "0x60023D6")]
|
|
[Address(RVA = "0x12FA3D0", Offset = "0x12F93D0", VA = "0x1812FA3D0")]
|
|
public PhysicsButtonVisual()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001B7A RID: 7034
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001B7A")]
|
|
[SerializeField]
|
|
private float releaseSpeed = 0.5f;
|
|
|
|
// Token: 0x04001B7B RID: 7035
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001B7B")]
|
|
[SerializeField]
|
|
private float pressSpeed = 10f;
|
|
|
|
// Token: 0x04001B7C RID: 7036
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001B7C")]
|
|
[SerializeField]
|
|
private Transform unpressedTransform;
|
|
|
|
// Token: 0x04001B7D RID: 7037
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001B7D")]
|
|
[SerializeField]
|
|
private Transform pressedTransform;
|
|
|
|
// Token: 0x04001B7E RID: 7038
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001B7E")]
|
|
[SerializeField]
|
|
private bool onlyShowLocalPlayerPresses;
|
|
|
|
// Token: 0x04001B7F RID: 7039
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001B7F")]
|
|
private Rigidbody EELOMEPLLID;
|
|
|
|
// Token: 0x04001B80 RID: 7040
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001B80")]
|
|
private Vector3 BAKFCIADPIP;
|
|
|
|
// Token: 0x04001B81 RID: 7041
|
|
[FieldOffset(Offset = "0x4C")]
|
|
[Token(Token = "0x4001B81")]
|
|
private float AKJOEKMJODG;
|
|
|
|
// Token: 0x04001B82 RID: 7042
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4001B82")]
|
|
private float LAPADAFCKGG;
|
|
|
|
// Token: 0x04001B83 RID: 7043
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4001B83")]
|
|
private Collider GMJANNPJBOF;
|
|
|
|
// Token: 0x04001B84 RID: 7044
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4001B84")]
|
|
[SerializeField]
|
|
private PhysicalButtonBase parentButton;
|
|
|
|
// Token: 0x04001B85 RID: 7045
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4001B85")]
|
|
private AGAJMBPABDL FIBHBBIOCFP;
|
|
|
|
// Token: 0x04001B86 RID: 7046
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4001B86")]
|
|
private Collider KAAFHBAACNO;
|
|
|
|
// Token: 0x04001B87 RID: 7047
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4001B87")]
|
|
private bool HHAIHKMMGHK;
|
|
|
|
// Token: 0x04001B88 RID: 7048
|
|
[FieldOffset(Offset = "0x79")]
|
|
[Token(Token = "0x4001B88")]
|
|
private bool BIPGLIDNHPC;
|
|
}
|