a
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities
|
||||
{
|
||||
// Token: 0x02002B7D RID: 11133
|
||||
[Token(Token = "0x2002B7D")]
|
||||
public class WhipPullable : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06012BAE RID: 76718 RVA: 0x0044D434 File Offset: 0x0044B634
|
||||
[Token(Token = "0x6012BAE")]
|
||||
[Address(RVA = "0x9E7570", Offset = "0x9E6370", VA = "0x1809E7570")]
|
||||
private void Awake()
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
WhipInteractable.DMNHOKLPCKI dmnhoklpcki;
|
||||
dmnhoklpcki.method_ptr = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.method = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.m_target = this;
|
||||
whipInteractable.HOHAEKNOABM += dmnhoklpcki;
|
||||
RigidbodyEx rigidbodyEx = this.whipInteractable.rigidbodyEx;
|
||||
int num = 0;
|
||||
if (rigidbodyEx == num)
|
||||
{
|
||||
Debug.LogError(base.name + " doesn't have a RigidbodyEx component. Pullables must have this component.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012BAF RID: 76719 RVA: 0x0044D4A4 File Offset: 0x0044B6A4
|
||||
[Token(Token = "0x6012BAF")]
|
||||
[Address(RVA = "0x9E7820", Offset = "0x9E6620", VA = "0x1809E7820")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
int num = 0;
|
||||
if (!(whipInteractable != num))
|
||||
{
|
||||
return;
|
||||
}
|
||||
WhipInteractable whipInteractable2 = this.whipInteractable;
|
||||
WhipInteractable.DMNHOKLPCKI dmnhoklpcki;
|
||||
dmnhoklpcki.method_ptr = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.method = ldftn(OJNOPFLEKHL);
|
||||
dmnhoklpcki.m_target = this;
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != this)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012BB0 RID: 76720 RVA: 0x0044D500 File Offset: 0x0044B700
|
||||
[Token(Token = "0x6012BB0")]
|
||||
[Address(RVA = "0x9E7670", Offset = "0x9E6470", VA = "0x1809E7670")]
|
||||
private void OJNOPFLEKHL(WhipInteractable ODBAFIFNIDO, AGAJMBPABDL NIAKEPMCHPK, Vector3 FGEOANJKIBI, Vector3 LJCFJMELDFL)
|
||||
{
|
||||
if (this.whipInteractable.rigidbodyEx.JEGGMAKBGEK)
|
||||
{
|
||||
WhipInteractable whipInteractable = this.whipInteractable;
|
||||
RigidbodyEx rigidbodyEx = whipInteractable.rigidbodyEx;
|
||||
if (rigidbodyEx != 0)
|
||||
{
|
||||
int num = 0;
|
||||
rigidbodyEx.SetKinematic("WhipInteractableKinematic", num != 0);
|
||||
}
|
||||
whipInteractable.gameObject.IBAICLIPHDI(DAJFOCGPHGP.StaticPhysics, DAJFOCGPHGP.DynamicPhysics);
|
||||
}
|
||||
if (this.whipInteractable.OGIBLNIIHDK)
|
||||
{
|
||||
RigidbodyEx rigidbodyEx2 = this.whipInteractable.rigidbodyEx;
|
||||
float z = this.pullVelocityMultiplier.z;
|
||||
float z2 = FGEOANJKIBI.z;
|
||||
Vector3 vector;
|
||||
float z3 = vector.z;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012BB1 RID: 76721 RVA: 0x0044D590 File Offset: 0x0044B790
|
||||
[Token(Token = "0x6012BB1")]
|
||||
[Address(RVA = "0x9E7950", Offset = "0x9E6750", VA = "0x1809E7950")]
|
||||
public WhipPullable()
|
||||
{
|
||||
float z = Vector3.one.z;
|
||||
this.pullVelocityMultiplier.z = z;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400C1B1 RID: 49585
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C1B1")]
|
||||
[SerializeField]
|
||||
private Vector3 pullVelocityMultiplier;
|
||||
|
||||
// Token: 0x0400C1B2 RID: 49586
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400C1B2")]
|
||||
[SerializeField]
|
||||
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false, false)]
|
||||
private WhipInteractable whipInteractable;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user