1708 lines
52 KiB
C#
1708 lines
52 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Diagnostics;
|
|
using System.Threading;
|
|
using Photon;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
// Token: 0x02000BBE RID: 3006
|
|
[DisallowMultipleComponent]
|
|
[RequireComponent(typeof(RigidbodyEx))]
|
|
public class RigidbodyPickup : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x06016CA6 RID: 93350 RVA: 0x0065BA94 File Offset: 0x00659C94
|
|
protected RigidbodyPickup HIELCLPFGNH()
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
|
|
// Token: 0x06016CA7 RID: 93351 RVA: 0x0065BA9C File Offset: 0x00659C9C
|
|
protected void HFNAEOOHEHN(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.JHBFKKAFPFG()) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.BKADEFKCPMC(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CA8 RID: 93352 RVA: 0x0065BB28 File Offset: 0x00659D28
|
|
public void GHKCCECJBPG(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CA9 RID: 93353 RVA: 0x0065BB60 File Offset: 0x00659D60
|
|
public void NKKCAKBEMGO(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.DKMPHIJMFNC(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.LFJNIHEKCMN(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016CAA RID: 93354 RVA: 0x0065BB78 File Offset: 0x00659D78
|
|
public void ANIJPKOBHPJ(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.FILMFKIEBCJ(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.LGENOOLFBLP(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016CAB RID: 93355 RVA: 0x0065BB90 File Offset: 0x00659D90
|
|
protected void CDMJIJJCGEF(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.JHBFKKAFPFG()) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CAC RID: 93356 RVA: 0x0065BC1C File Offset: 0x00659E1C
|
|
protected void GJNNDAPDGIB()
|
|
{
|
|
this.HFNAEOOHEHN(this.HEPHHLLIDBC(), this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016CAD RID: 93357 RVA: 0x0065BC30 File Offset: 0x00659E30
|
|
public bool IGNMDEKBLGA(Transform DKCNBKFJCLK)
|
|
{
|
|
return this.MEMOPCOHPLE && DKCNBKFJCLK == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x06016CAE RID: 93358 RVA: 0x0065BC4C File Offset: 0x00659E4C
|
|
public virtual void BKCEKPGAIHP()
|
|
{
|
|
this.BGBBFLPAECA(this.GCEBPCBHJJL(), this.FJHEHAJCKKG());
|
|
if (this.KHKJLEPHFJG != null)
|
|
{
|
|
this.KHKJLEPHFJG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CAF RID: 93359 RVA: 0x0065BC78 File Offset: 0x00659E78
|
|
public virtual Vector3 DCOAIMPGDBF()
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.JECMIHDAFJM() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JJLFMCMNAPC.BGGADGJCIIF(), this.ECDKJAKBDHG().MGKEEGDPIKK());
|
|
}
|
|
Quaternion quaternion = this.GJLOMOIAHMP().PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016CB0 RID: 93360 RVA: 0x0065BD00 File Offset: 0x00659F00
|
|
protected void AMBCGKBKNIF()
|
|
{
|
|
this.BGGNNJBBPBL(this.HEPHHLLIDBC(), this.DBCENDGOCCK());
|
|
}
|
|
|
|
// Token: 0x06016CB1 RID: 93361 RVA: 0x0065BD14 File Offset: 0x00659F14
|
|
public virtual Vector3 NIPACIOAHKA()
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.ECDKJAKBDHG() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JJLFMCMNAPC.BHGNGIADDDO(), this.ECDKJAKBDHG().INMMPMMNFJF);
|
|
}
|
|
Quaternion quaternion = this.INMMPMMNFJF.PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x140000BF RID: 191
|
|
// (add) Token: 0x06016CB2 RID: 93362 RVA: 0x0065BD9C File Offset: 0x00659F9C
|
|
// (remove) Token: 0x06016CBE RID: 93374 RVA: 0x0065C028 File Offset: 0x0065A228
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action KHKJLEPHFJG;
|
|
|
|
// Token: 0x06016CB4 RID: 93364 RVA: 0x0065BE00 File Offset: 0x0065A000
|
|
public void ODGNMMNKGIC(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x140000BE RID: 190
|
|
// (add) Token: 0x06016CF9 RID: 93433 RVA: 0x0065CF08 File Offset: 0x0065B108
|
|
// (remove) Token: 0x06016CB5 RID: 93365 RVA: 0x0065BE38 File Offset: 0x0065A038
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public event Action DFCABCNHHOD;
|
|
|
|
// Token: 0x06016CB6 RID: 93366 RVA: 0x0065BE70 File Offset: 0x0065A070
|
|
protected virtual void NGHJFABFAOA()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016CB7 RID: 93367 RVA: 0x0065BE90 File Offset: 0x0065A090
|
|
public virtual void DKMPHIJMFNC(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Release();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.MPHPMNMKLMA(base.DFJFKOLLEMK());
|
|
}
|
|
this.IMNJKOCAABC();
|
|
}
|
|
|
|
// Token: 0x06016CB8 RID: 93368 RVA: 0x0065BF00 File Offset: 0x0065A100
|
|
public virtual void CMGPKDEGDOM(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.JDNMLKPBIEM();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.HHKFJDBNHND(base.DGLKKANNBPD());
|
|
}
|
|
this.IMNJKOCAABC();
|
|
}
|
|
|
|
// Token: 0x06016CB9 RID: 93369 RVA: 0x0065BF70 File Offset: 0x0065A170
|
|
public virtual bool MEOKHJEHNEP()
|
|
{
|
|
return this.JOCPEJGANBB != null;
|
|
}
|
|
|
|
// Token: 0x06016CBA RID: 93370 RVA: 0x0065BF80 File Offset: 0x0065A180
|
|
protected void GPKFCGDHHAM()
|
|
{
|
|
if (this.DEBCPMOEAKF != null)
|
|
{
|
|
base.StopCoroutine(this.DEBCPMOEAKF);
|
|
this.DEBCPMOEAKF = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CBB RID: 93371 RVA: 0x0065BFA0 File Offset: 0x0065A1A0
|
|
public bool GOJGFPPPFOK()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016CBC RID: 93372 RVA: 0x0065BFA8 File Offset: 0x0065A1A8
|
|
private IEnumerator FEKEHPMMKDM()
|
|
{
|
|
float num = 0f;
|
|
while (!base.gameObject.activeSelf && num <= 0.5f)
|
|
{
|
|
yield return null;
|
|
num += Time.deltaTime;
|
|
}
|
|
Vector3 zero = Vector3.zero;
|
|
Vector3 zero2 = Vector3.zero;
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
num = 0f;
|
|
this.NPLEFCHDLIK = true;
|
|
while (this.interpolateOnPickup && num < 0.06f)
|
|
{
|
|
Vector3 vector = Vector3.SmoothDamp(this.GGPILMKBGGN.CIGPHKLAAOD, this.KIJCBJAJPID, ref zero, 0.06f);
|
|
Vector3 eulerAngles = this.INMMPMMNFJF.eulerAngles;
|
|
Vector3 eulerAngles2 = base.transform.rotation.eulerAngles;
|
|
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref zero2.x, 0.06f);
|
|
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref zero2.y, 0.06f);
|
|
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref zero2.z, 0.06f);
|
|
Quaternion quaternion = Quaternion.Euler(eulerAngles2);
|
|
this.JMDOMAJBNEH(vector, quaternion);
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
yield return new WaitForFixedUpdate();
|
|
num += Time.fixedDeltaTime;
|
|
}
|
|
this.NPLEFCHDLIK = false;
|
|
if (this.DFCABCNHHOD != null)
|
|
{
|
|
this.DFCABCNHHOD();
|
|
}
|
|
for (;;)
|
|
{
|
|
yield return new WaitForFixedUpdate();
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06016CBD RID: 93373 RVA: 0x0065BFC4 File Offset: 0x0065A1C4
|
|
public virtual Quaternion FJHEHAJCKKG()
|
|
{
|
|
if (!this.MEOKHJEHNEP())
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.JECMIHDAFJM() != null)
|
|
{
|
|
return this.JPAJAIHADHK().DBCENDGOCCK().PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
|
|
// Token: 0x06016CBF RID: 93375 RVA: 0x0065C060 File Offset: 0x0065A260
|
|
public virtual void EDINJFDHBHF()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.BKOOHADGGKM(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.ILFBAGFFLME(true);
|
|
}
|
|
this.GPKFCGDHHAM();
|
|
}
|
|
|
|
// Token: 0x06016CC0 RID: 93376 RVA: 0x0065C0CC File Offset: 0x0065A2CC
|
|
public bool GPLEGPDGAHL(RigidbodyPickup IAENKMNDOMH)
|
|
{
|
|
return this.DIGCFIAANFF() && IAENKMNDOMH.transform == this.JOCPEJGANBB && IAENKMNDOMH == this.HIELCLPFGNH();
|
|
}
|
|
|
|
// Token: 0x06016CC1 RID: 93377 RVA: 0x0065C100 File Offset: 0x0065A300
|
|
protected void APMDLKBIJPK()
|
|
{
|
|
this.BONHMGALIGG(this.GCEBPCBHJJL(), this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016CC2 RID: 93378 RVA: 0x0065C114 File Offset: 0x0065A314
|
|
protected void AJAIJCKMDAF()
|
|
{
|
|
this.KNDGIEAENPG(this.DCOAIMPGDBF(), this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016CC3 RID: 93379 RVA: 0x0065C128 File Offset: 0x0065A328
|
|
public bool PPIMGGALCLN()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016CC4 RID: 93380 RVA: 0x0065C130 File Offset: 0x0065A330
|
|
public virtual void EMKMANCBLJH()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.KHEHEDPHLGP(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.HHKFJDBNHND(false);
|
|
}
|
|
this.PIFNKCHIFBJ();
|
|
}
|
|
|
|
// Token: 0x06016CC5 RID: 93381 RVA: 0x0065C19C File Offset: 0x0065A39C
|
|
public bool IsAttachedTo(RigidbodyEx GGPILMKBGGN)
|
|
{
|
|
return this.MEMOPCOHPLE && GGPILMKBGGN.transform == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x06016CC6 RID: 93382 RVA: 0x0065C1C0 File Offset: 0x0065A3C0
|
|
public bool KNADNCPHKBA()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016CC7 RID: 93383 RVA: 0x0065C1C8 File Offset: 0x0065A3C8
|
|
protected RigidbodyPickup JECMIHDAFJM()
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
|
|
// Token: 0x06016CC8 RID: 93384 RVA: 0x0065C1D0 File Offset: 0x0065A3D0
|
|
public virtual void KFDHIOJKCPG()
|
|
{
|
|
this.BGBBFLPAECA(this.DCOAIMPGDBF(), this.GJLOMOIAHMP());
|
|
if (this.KHKJLEPHFJG != null)
|
|
{
|
|
this.KHKJLEPHFJG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CC9 RID: 93385 RVA: 0x0065C1FC File Offset: 0x0065A3FC
|
|
public bool DPGFIIPBLPM(RigidbodyPickup IAENKMNDOMH)
|
|
{
|
|
return !this.DIGCFIAANFF() || !(IAENKMNDOMH.transform == this.JOCPEJGANBB) || IAENKMNDOMH == this.ECDKJAKBDHG();
|
|
}
|
|
|
|
// Token: 0x06016CCA RID: 93386 RVA: 0x0065C230 File Offset: 0x0065A430
|
|
protected void FADPDFOABLC(bool NOBAPCOKFIL)
|
|
{
|
|
this.<PNOFAFGIMHG>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x170009E8 RID: 2536
|
|
// (get) Token: 0x06016CCB RID: 93387 RVA: 0x0065C23C File Offset: 0x0065A43C
|
|
// (set) Token: 0x06016D1A RID: 93466 RVA: 0x0065D56C File Offset: 0x0065B76C
|
|
protected RigidbodyPickup JJLFMCMNAPC
|
|
{
|
|
get
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
set
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.KHKJLEPHFJG -= this.KGJJAIDKHLF;
|
|
}
|
|
this.HAKLDNDDNIH = value;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.KHKJLEPHFJG += this.KGJJAIDKHLF;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CCC RID: 93388 RVA: 0x0065C244 File Offset: 0x0065A444
|
|
protected virtual void BGJEJHLKNKA()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016CCD RID: 93389 RVA: 0x0065C264 File Offset: 0x0065A464
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016CCE RID: 93390 RVA: 0x0065C284 File Offset: 0x0065A484
|
|
public void KMMFJBFGHEN(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.FILMFKIEBCJ(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.LGENOOLFBLP(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016CCF RID: 93391 RVA: 0x0065C29C File Offset: 0x0065A49C
|
|
public bool GKCDAKDBMKL(RigidbodyPickup IAENKMNDOMH)
|
|
{
|
|
return this.DIGCFIAANFF() && IAENKMNDOMH.transform == this.JOCPEJGANBB && IAENKMNDOMH == this.JPAJAIHADHK();
|
|
}
|
|
|
|
// Token: 0x06016CD0 RID: 93392 RVA: 0x0065C2D0 File Offset: 0x0065A4D0
|
|
public virtual void Release()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.JLPPFBKHLOJ = true;
|
|
}
|
|
this.PIFNKCHIFBJ();
|
|
}
|
|
|
|
// Token: 0x06016CD1 RID: 93393 RVA: 0x0065C33C File Offset: 0x0065A53C
|
|
protected void NMMIMJBHIBI(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CD2 RID: 93394 RVA: 0x0065C3C8 File Offset: 0x0065A5C8
|
|
protected void NNCFFJCEIAP()
|
|
{
|
|
if (this.DEBCPMOEAKF != null)
|
|
{
|
|
base.StopCoroutine(this.DEBCPMOEAKF);
|
|
this.DEBCPMOEAKF = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CD3 RID: 93395 RVA: 0x0065C3E8 File Offset: 0x0065A5E8
|
|
public virtual void IKPODAPKACL(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.EMKMANCBLJH();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.EDPCKGFKJBN(null);
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.MPHPMNMKLMA(base.GANDPDNCOKF());
|
|
}
|
|
this.COLCGDLNIJH();
|
|
}
|
|
|
|
// Token: 0x06016CD4 RID: 93396 RVA: 0x0065C458 File Offset: 0x0065A658
|
|
protected void KHEHEDPHLGP(RigidbodyPickup NOBAPCOKFIL)
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.IHJJGHICGHB(new Action(this.NHIHCFHKNMF));
|
|
}
|
|
this.HAKLDNDDNIH = NOBAPCOKFIL;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.GCHBLJLFFED(new Action(this.GHGIHOLEPBA));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CD5 RID: 93397 RVA: 0x0065C4BC File Offset: 0x0065A6BC
|
|
protected virtual void IBGMECCOGML()
|
|
{
|
|
base.ELPAGAAOPFN();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x170009EA RID: 2538
|
|
// (get) Token: 0x06016CD6 RID: 93398 RVA: 0x0065C4DC File Offset: 0x0065A6DC
|
|
public virtual Vector3 KIJCBJAJPID
|
|
{
|
|
get
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.JJLFMCMNAPC != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JJLFMCMNAPC.KIJCBJAJPID, this.JJLFMCMNAPC.INMMPMMNFJF);
|
|
}
|
|
Quaternion quaternion = this.INMMPMMNFJF.PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CD7 RID: 93399 RVA: 0x0065C564 File Offset: 0x0065A764
|
|
protected void IMNJKOCAABC()
|
|
{
|
|
this.PIFNKCHIFBJ();
|
|
if (base.gameObject.activeSelf)
|
|
{
|
|
this.DEBCPMOEAKF = base.StartCoroutine(this.DIBKAKJJOJA());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CD8 RID: 93400 RVA: 0x0065C590 File Offset: 0x0065A790
|
|
public virtual void FILMFKIEBCJ(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Release();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.BKOOHADGGKM(null);
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.ILFBAGFFLME(base.DFJFKOLLEMK());
|
|
}
|
|
this.KKEHKLEFCMN();
|
|
}
|
|
|
|
// Token: 0x06016CD9 RID: 93401 RVA: 0x0065C600 File Offset: 0x0065A800
|
|
public virtual void FELLCGFFLLH()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.OEHPDEDODGG.JDABLENHFCH(true);
|
|
}
|
|
this.PIFNKCHIFBJ();
|
|
}
|
|
|
|
// Token: 0x06016CDA RID: 93402 RVA: 0x0065C66C File Offset: 0x0065A86C
|
|
protected void BGMPCMHCDCE()
|
|
{
|
|
this.AMMCOMGDJMK(this.KIJCBJAJPID, this.CAPJFECFOME());
|
|
}
|
|
|
|
// Token: 0x06016CDB RID: 93403 RVA: 0x0065C680 File Offset: 0x0065A880
|
|
public virtual void HMFEDCJAOHE()
|
|
{
|
|
this.LAMAMHDMGGN(this.HEPHHLLIDBC(), this.INMMPMMNFJF);
|
|
if (this.KHKJLEPHFJG != null)
|
|
{
|
|
this.KHKJLEPHFJG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CDC RID: 93404 RVA: 0x0065C6AC File Offset: 0x0065A8AC
|
|
public void ACNBFBEKKIP(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.KHKJLEPHFJG;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.KHKJLEPHFJG, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CDD RID: 93405 RVA: 0x0065C6E4 File Offset: 0x0065A8E4
|
|
public void NHINDKMCEII(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.INNIMLIDAKN(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.JJLFMCMNAPC = LINNJLCFPEC;
|
|
}
|
|
|
|
// Token: 0x06016CDE RID: 93406 RVA: 0x0065C6FC File Offset: 0x0065A8FC
|
|
protected void EECKIFPCOBD()
|
|
{
|
|
if (this.DEBCPMOEAKF != null)
|
|
{
|
|
base.StopCoroutine(this.DEBCPMOEAKF);
|
|
this.DEBCPMOEAKF = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CDF RID: 93407 RVA: 0x0065C71C File Offset: 0x0065A91C
|
|
protected void KHCIFPJGIEE()
|
|
{
|
|
this.BONHMGALIGG(this.DCOAIMPGDBF(), this.GJLOMOIAHMP());
|
|
}
|
|
|
|
// Token: 0x06016CE0 RID: 93408 RVA: 0x0065C730 File Offset: 0x0065A930
|
|
protected RigidbodyPickup NINJGABLMBL()
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
|
|
// Token: 0x06016CE1 RID: 93409 RVA: 0x0065C738 File Offset: 0x0065A938
|
|
protected virtual void FIDMEJHMGJI()
|
|
{
|
|
base.LGCNFLACIIH();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016CE2 RID: 93410 RVA: 0x0065C758 File Offset: 0x0065A958
|
|
public virtual Vector3 MCACCOBNBML()
|
|
{
|
|
if (!this.DIGCFIAANFF())
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.JECMIHDAFJM() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.HIELCLPFGNH().GCEBPCBHJJL(), this.HIELCLPFGNH().FJHEHAJCKKG());
|
|
}
|
|
Quaternion quaternion = this.INMMPMMNFJF.PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016CE3 RID: 93411 RVA: 0x0065C7E0 File Offset: 0x0065A9E0
|
|
protected void BONHMGALIGG(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CE4 RID: 93412 RVA: 0x0065C86C File Offset: 0x0065AA6C
|
|
protected void LAMAMHDMGGN(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CE5 RID: 93413 RVA: 0x0065C8F8 File Offset: 0x0065AAF8
|
|
public bool KMMAANBLKFE(RigidbodyPickup IAENKMNDOMH)
|
|
{
|
|
return !this.MEMOPCOHPLE || !(IAENKMNDOMH.transform == this.JOCPEJGANBB) || IAENKMNDOMH == this.JECMIHDAFJM();
|
|
}
|
|
|
|
// Token: 0x06016CE6 RID: 93414 RVA: 0x0065C92C File Offset: 0x0065AB2C
|
|
public void GCHBLJLFFED(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.KHKJLEPHFJG;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.KHKJLEPHFJG, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CE7 RID: 93415 RVA: 0x0065C964 File Offset: 0x0065AB64
|
|
protected void KNDGIEAENPG(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CE8 RID: 93416 RVA: 0x0065C9F0 File Offset: 0x0065ABF0
|
|
protected void JMDOMAJBNEH(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CE9 RID: 93417 RVA: 0x0065CA7C File Offset: 0x0065AC7C
|
|
public virtual Quaternion GJLOMOIAHMP()
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.HIELCLPFGNH() != null)
|
|
{
|
|
return this.JPAJAIHADHK().FJHEHAJCKKG().PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
|
|
// Token: 0x06016CEA RID: 93418 RVA: 0x0065CAE0 File Offset: 0x0065ACE0
|
|
public virtual Vector3 HEPHHLLIDBC()
|
|
{
|
|
if (!this.DIGCFIAANFF())
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.NINJGABLMBL() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JJLFMCMNAPC.HEPHHLLIDBC(), this.JJLFMCMNAPC.FJHEHAJCKKG());
|
|
}
|
|
Quaternion quaternion = this.INMMPMMNFJF.PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016CEB RID: 93419 RVA: 0x0065CB68 File Offset: 0x0065AD68
|
|
protected void KKEHKLEFCMN()
|
|
{
|
|
this.PIFNKCHIFBJ();
|
|
if (base.gameObject.activeSelf)
|
|
{
|
|
this.DEBCPMOEAKF = base.StartCoroutine(this.NFBOKPLFMDB());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CEC RID: 93420 RVA: 0x0065CB94 File Offset: 0x0065AD94
|
|
protected RigidbodyPickup ECDKJAKBDHG()
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
|
|
// Token: 0x06016CED RID: 93421 RVA: 0x0065CB9C File Offset: 0x0065AD9C
|
|
public void GLEEDHFAIDG(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.KHKJLEPHFJG;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.KHKJLEPHFJG, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CEE RID: 93422 RVA: 0x0065CBD4 File Offset: 0x0065ADD4
|
|
protected void IPFPJFBGANK(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.JHBFKKAFPFG()) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CEF RID: 93423 RVA: 0x0065CC60 File Offset: 0x0065AE60
|
|
protected void NKLMAHIJAGA(bool NOBAPCOKFIL)
|
|
{
|
|
this.<PNOFAFGIMHG>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06016CF0 RID: 93424 RVA: 0x0065CC6C File Offset: 0x0065AE6C
|
|
private IEnumerator NFBOKPLFMDB()
|
|
{
|
|
num = 0f;
|
|
while (!base.gameObject.activeSelf && num <= 0.5f)
|
|
{
|
|
yield return null;
|
|
num += Time.deltaTime;
|
|
}
|
|
zero = Vector3.zero;
|
|
zero2 = Vector3.zero;
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
num = 0f;
|
|
this.NPLEFCHDLIK = true;
|
|
while (this.interpolateOnPickup && num < 0.06f)
|
|
{
|
|
vector = Vector3.SmoothDamp(this.GGPILMKBGGN.CIGPHKLAAOD, this.KIJCBJAJPID, ref zero, 0.06f);
|
|
eulerAngles = this.INMMPMMNFJF.eulerAngles;
|
|
eulerAngles2 = base.transform.rotation.eulerAngles;
|
|
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref zero2.x, 0.06f);
|
|
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref zero2.y, 0.06f);
|
|
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref zero2.z, 0.06f);
|
|
quaternion = Quaternion.Euler(eulerAngles2);
|
|
this.JMDOMAJBNEH(vector, quaternion);
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
yield return new WaitForFixedUpdate();
|
|
num += Time.fixedDeltaTime;
|
|
}
|
|
this.NPLEFCHDLIK = false;
|
|
if (this.DFCABCNHHOD != null)
|
|
{
|
|
this.DFCABCNHHOD();
|
|
}
|
|
for (;;)
|
|
{
|
|
yield return new WaitForFixedUpdate();
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06016CF1 RID: 93425 RVA: 0x0065CC88 File Offset: 0x0065AE88
|
|
public void JNIIPLIFFND(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CF2 RID: 93426 RVA: 0x0065CCC0 File Offset: 0x0065AEC0
|
|
protected void COLCGDLNIJH()
|
|
{
|
|
this.GPKFCGDHHAM();
|
|
if (base.gameObject.activeSelf)
|
|
{
|
|
this.DEBCPMOEAKF = base.StartCoroutine(this.JHODNCFOHOA());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016CF3 RID: 93427 RVA: 0x0065CCEC File Offset: 0x0065AEEC
|
|
public void GDPLNFBICHC(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016CF4 RID: 93428 RVA: 0x0065CD24 File Offset: 0x0065AF24
|
|
public virtual void INNIMLIDAKN(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.IDGGHKGFEJP();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.JDABLENHFCH(base.DGLKKANNBPD());
|
|
}
|
|
this.COLCGDLNIJH();
|
|
}
|
|
|
|
// Token: 0x06016CF5 RID: 93429 RVA: 0x0065CD94 File Offset: 0x0065AF94
|
|
protected void BGBBFLPAECA(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.JHBFKKAFPFG()) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.BKADEFKCPMC(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016CF6 RID: 93430 RVA: 0x0065CE20 File Offset: 0x0065B020
|
|
public void EJKIKJAFNFB(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.CMGPKDEGDOM(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.BKOOHADGGKM(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016CF7 RID: 93431 RVA: 0x0065CE38 File Offset: 0x0065B038
|
|
public virtual Quaternion DBCENDGOCCK()
|
|
{
|
|
if (!this.DIGCFIAANFF())
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.JPAJAIHADHK() != null)
|
|
{
|
|
return this.JJLFMCMNAPC.GJLOMOIAHMP().PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
|
|
// Token: 0x06016CF8 RID: 93432 RVA: 0x0065CE9C File Offset: 0x0065B09C
|
|
public virtual void BDJINEJMDHH()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.LGENOOLFBLP(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.ILFBAGFFLME(false);
|
|
}
|
|
this.NNCFFJCEIAP();
|
|
}
|
|
|
|
// Token: 0x06016CFA RID: 93434 RVA: 0x0065CF40 File Offset: 0x0065B140
|
|
protected void OOBEOFEHMLO(bool NOBAPCOKFIL)
|
|
{
|
|
this.<PNOFAFGIMHG>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06016CFB RID: 93435 RVA: 0x0065CF4C File Offset: 0x0065B14C
|
|
private IEnumerator JHODNCFOHOA()
|
|
{
|
|
num = 0f;
|
|
while (!base.gameObject.activeSelf && num <= 0.5f)
|
|
{
|
|
yield return null;
|
|
num += Time.deltaTime;
|
|
}
|
|
zero = Vector3.zero;
|
|
zero2 = Vector3.zero;
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
num = 0f;
|
|
this.NPLEFCHDLIK = true;
|
|
while (this.interpolateOnPickup && num < 0.06f)
|
|
{
|
|
vector = Vector3.SmoothDamp(this.GGPILMKBGGN.CIGPHKLAAOD, this.KIJCBJAJPID, ref zero, 0.06f);
|
|
eulerAngles = this.INMMPMMNFJF.eulerAngles;
|
|
eulerAngles2 = base.transform.rotation.eulerAngles;
|
|
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref zero2.x, 0.06f);
|
|
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref zero2.y, 0.06f);
|
|
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref zero2.z, 0.06f);
|
|
quaternion = Quaternion.Euler(eulerAngles2);
|
|
this.JMDOMAJBNEH(vector, quaternion);
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
yield return new WaitForFixedUpdate();
|
|
num += Time.fixedDeltaTime;
|
|
}
|
|
this.NPLEFCHDLIK = false;
|
|
if (this.DFCABCNHHOD != null)
|
|
{
|
|
this.DFCABCNHHOD();
|
|
}
|
|
for (;;)
|
|
{
|
|
yield return new WaitForFixedUpdate();
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06016CFC RID: 93436 RVA: 0x0065CF68 File Offset: 0x0065B168
|
|
private IEnumerator DIBKAKJJOJA()
|
|
{
|
|
num = 0f;
|
|
while (!base.gameObject.activeSelf && num <= 0.5f)
|
|
{
|
|
yield return null;
|
|
num += Time.deltaTime;
|
|
}
|
|
zero = Vector3.zero;
|
|
zero2 = Vector3.zero;
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
num = 0f;
|
|
this.NPLEFCHDLIK = true;
|
|
while (this.interpolateOnPickup && num < 0.06f)
|
|
{
|
|
vector = Vector3.SmoothDamp(this.GGPILMKBGGN.CIGPHKLAAOD, this.KIJCBJAJPID, ref zero, 0.06f);
|
|
eulerAngles = this.INMMPMMNFJF.eulerAngles;
|
|
eulerAngles2 = base.transform.rotation.eulerAngles;
|
|
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref zero2.x, 0.06f);
|
|
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref zero2.y, 0.06f);
|
|
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref zero2.z, 0.06f);
|
|
quaternion = Quaternion.Euler(eulerAngles2);
|
|
this.JMDOMAJBNEH(vector, quaternion);
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
yield return new WaitForFixedUpdate();
|
|
num += Time.fixedDeltaTime;
|
|
}
|
|
this.NPLEFCHDLIK = false;
|
|
if (this.DFCABCNHHOD != null)
|
|
{
|
|
this.DFCABCNHHOD();
|
|
}
|
|
for (;;)
|
|
{
|
|
yield return new WaitForFixedUpdate();
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06016CFD RID: 93437 RVA: 0x0065CF84 File Offset: 0x0065B184
|
|
protected virtual void MLJHPAPJFEC()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016CFE RID: 93438 RVA: 0x0065CFA4 File Offset: 0x0065B1A4
|
|
public virtual void PEKCCFGHHDL()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.LFJNIHEKCMN(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.OEHPDEDODGG.JDABLENHFCH(false);
|
|
}
|
|
this.NNCFFJCEIAP();
|
|
}
|
|
|
|
// Token: 0x06016CFF RID: 93439 RVA: 0x0065D010 File Offset: 0x0065B210
|
|
protected void EDPCKGFKJBN(RigidbodyPickup NOBAPCOKFIL)
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.IHJJGHICGHB(new Action(this.NHIHCFHKNMF));
|
|
}
|
|
this.HAKLDNDDNIH = NOBAPCOKFIL;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.GCHBLJLFFED(new Action(this.GJNNDAPDGIB));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D00 RID: 93440 RVA: 0x0065D074 File Offset: 0x0065B274
|
|
protected virtual void OPDMENDFALI()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016D01 RID: 93441 RVA: 0x0065D094 File Offset: 0x0065B294
|
|
protected virtual void ACOIMDMPDOM()
|
|
{
|
|
base.LGCNFLACIIH();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016D02 RID: 93442 RVA: 0x0065D0B4 File Offset: 0x0065B2B4
|
|
public void EFCJFKAFFEC(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D03 RID: 93443 RVA: 0x0065D0EC File Offset: 0x0065B2EC
|
|
public void ADBKNANMAAA(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D04 RID: 93444 RVA: 0x0065D124 File Offset: 0x0065B324
|
|
protected void LFJNIHEKCMN(RigidbodyPickup NOBAPCOKFIL)
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.CDMDHEHAHME(new Action(this.APMDLKBIJPK));
|
|
}
|
|
this.HAKLDNDDNIH = NOBAPCOKFIL;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.GCHBLJLFFED(new Action(this.AMBCGKBKNIF));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D05 RID: 93445 RVA: 0x0065D188 File Offset: 0x0065B388
|
|
public bool PGJAEGLOGII()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016D06 RID: 93446 RVA: 0x0065D190 File Offset: 0x0065B390
|
|
protected void NHIHCFHKNMF()
|
|
{
|
|
this.IPFPJFBGANK(this.GCEBPCBHJJL(), this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016D07 RID: 93447 RVA: 0x0065D1A4 File Offset: 0x0065B3A4
|
|
protected void ODKCHPENOIN(bool NOBAPCOKFIL)
|
|
{
|
|
this.<PNOFAFGIMHG>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06016D08 RID: 93448 RVA: 0x0065D1B0 File Offset: 0x0065B3B0
|
|
public virtual void JKJPCLEILPC(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Release();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.BKOOHADGGKM(null);
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.OMIBLDKLKCF(base.DGLKKANNBPD());
|
|
}
|
|
this.COLCGDLNIJH();
|
|
}
|
|
|
|
// Token: 0x06016D09 RID: 93449 RVA: 0x0065D220 File Offset: 0x0065B420
|
|
public bool FBAKGIHNPJH()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016D0A RID: 93450 RVA: 0x0065D228 File Offset: 0x0065B428
|
|
public virtual Quaternion MGKEEGDPIKK()
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.ECDKJAKBDHG() != null)
|
|
{
|
|
return this.ECDKJAKBDHG().DBCENDGOCCK().PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
|
|
// Token: 0x06016D0B RID: 93451 RVA: 0x0065D28C File Offset: 0x0065B48C
|
|
public bool KOAFJKCHKLK(RigidbodyEx GGPILMKBGGN)
|
|
{
|
|
return !this.DIGCFIAANFF() || GGPILMKBGGN.transform == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x06016D0C RID: 93452 RVA: 0x0065D2B0 File Offset: 0x0065B4B0
|
|
public virtual void JDNMLKPBIEM()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.KHEHEDPHLGP(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.HHKFJDBNHND(true);
|
|
}
|
|
this.EECKIFPCOBD();
|
|
}
|
|
|
|
// Token: 0x06016D0D RID: 93453 RVA: 0x0065D31C File Offset: 0x0065B51C
|
|
protected void PFLMJACAOGE()
|
|
{
|
|
this.JMDOMAJBNEH(this.BGGADGJCIIF(), this.CAPJFECFOME());
|
|
}
|
|
|
|
// Token: 0x06016D0E RID: 93454 RVA: 0x0065D330 File Offset: 0x0065B530
|
|
public virtual bool DIGCFIAANFF()
|
|
{
|
|
return this.JOCPEJGANBB != null;
|
|
}
|
|
|
|
// Token: 0x170009EC RID: 2540
|
|
// (get) Token: 0x06016D0F RID: 93455 RVA: 0x0065D340 File Offset: 0x0065B540
|
|
// (set) Token: 0x06016D12 RID: 93458 RVA: 0x0065D380 File Offset: 0x0065B580
|
|
public bool NPLEFCHDLIK { get; protected set; }
|
|
|
|
// Token: 0x06016D10 RID: 93456 RVA: 0x0065D348 File Offset: 0x0065B548
|
|
protected virtual void GLBKBCBIOFJ()
|
|
{
|
|
base.LGCNFLACIIH();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016D11 RID: 93457 RVA: 0x0065D368 File Offset: 0x0065B568
|
|
public void GIKEIANOOHB(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.CMGPKDEGDOM(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.KHEHEDPHLGP(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016D13 RID: 93459 RVA: 0x0065D38C File Offset: 0x0065B58C
|
|
public bool LALEBNJLDAN()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016D14 RID: 93460 RVA: 0x0065D394 File Offset: 0x0065B594
|
|
private IEnumerator GMNMFPBKBIE()
|
|
{
|
|
num = 0f;
|
|
while (!base.gameObject.activeSelf && num <= 0.5f)
|
|
{
|
|
yield return null;
|
|
num += Time.deltaTime;
|
|
}
|
|
zero = Vector3.zero;
|
|
zero2 = Vector3.zero;
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
num = 0f;
|
|
this.NPLEFCHDLIK = true;
|
|
while (this.interpolateOnPickup && num < 0.06f)
|
|
{
|
|
vector = Vector3.SmoothDamp(this.GGPILMKBGGN.CIGPHKLAAOD, this.KIJCBJAJPID, ref zero, 0.06f);
|
|
eulerAngles = this.INMMPMMNFJF.eulerAngles;
|
|
eulerAngles2 = base.transform.rotation.eulerAngles;
|
|
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref zero2.x, 0.06f);
|
|
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref zero2.y, 0.06f);
|
|
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref zero2.z, 0.06f);
|
|
quaternion = Quaternion.Euler(eulerAngles2);
|
|
this.JMDOMAJBNEH(vector, quaternion);
|
|
this.GGPILMKBGGN.ClearVelocity();
|
|
yield return new WaitForFixedUpdate();
|
|
num += Time.fixedDeltaTime;
|
|
}
|
|
this.NPLEFCHDLIK = false;
|
|
if (this.DFCABCNHHOD != null)
|
|
{
|
|
this.DFCABCNHHOD();
|
|
}
|
|
for (;;)
|
|
{
|
|
yield return new WaitForFixedUpdate();
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06016D15 RID: 93461 RVA: 0x0065D3B0 File Offset: 0x0065B5B0
|
|
protected void AMMCOMGDJMK(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.BKADEFKCPMC(vector2.GGPAIPKFIIO());
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016D16 RID: 93462 RVA: 0x0065D43C File Offset: 0x0065B63C
|
|
public void IHJJGHICGHB(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.KHKJLEPHFJG;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.KHKJLEPHFJG, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D17 RID: 93463 RVA: 0x0065D474 File Offset: 0x0065B674
|
|
public void CDMDHEHAHME(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.KHKJLEPHFJG;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.KHKJLEPHFJG, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D18 RID: 93464 RVA: 0x0065D4AC File Offset: 0x0065B6AC
|
|
public void DLKKMAJJIKE(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D19 RID: 93465 RVA: 0x0065D4E4 File Offset: 0x0065B6E4
|
|
public virtual Vector3 KBBIALIBBPE()
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.JJLFMCMNAPC != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JPAJAIHADHK().HEPHHLLIDBC(), this.NINJGABLMBL().MGKEEGDPIKK());
|
|
}
|
|
Quaternion quaternion = this.MGKEEGDPIKK().PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016D1B RID: 93467 RVA: 0x0065D5D0 File Offset: 0x0065B7D0
|
|
public bool BOFDEADHJKD(Transform DKCNBKFJCLK)
|
|
{
|
|
return !this.MEOKHJEHNEP() || DKCNBKFJCLK == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x170009E9 RID: 2537
|
|
// (get) Token: 0x06016D1C RID: 93468 RVA: 0x0065D5EC File Offset: 0x0065B7EC
|
|
public virtual bool MEMOPCOHPLE
|
|
{
|
|
get
|
|
{
|
|
return this.JOCPEJGANBB != null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D1D RID: 93469 RVA: 0x0065D5FC File Offset: 0x0065B7FC
|
|
protected void BKOOHADGGKM(RigidbodyPickup NOBAPCOKFIL)
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.IHJJGHICGHB(new Action(this.AJAIJCKMDAF));
|
|
}
|
|
this.HAKLDNDDNIH = NOBAPCOKFIL;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.KHKJLEPHFJG += this.NHIHCFHKNMF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D1E RID: 93470 RVA: 0x0065D660 File Offset: 0x0065B860
|
|
public virtual void IDGGHKGFEJP()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.LGENOOLFBLP(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = false;
|
|
}
|
|
this.OEHPDEDODGG.ILFBAGFFLME(false);
|
|
}
|
|
this.KKIOPCKEGMC();
|
|
}
|
|
|
|
// Token: 0x06016D1F RID: 93471 RVA: 0x0065D6CC File Offset: 0x0065B8CC
|
|
public virtual Quaternion CAPJFECFOME()
|
|
{
|
|
if (!this.MEOKHJEHNEP())
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.HIELCLPFGNH() != null)
|
|
{
|
|
return this.HIELCLPFGNH().FJHEHAJCKKG().PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
|
|
// Token: 0x170009EB RID: 2539
|
|
// (get) Token: 0x06016D20 RID: 93472 RVA: 0x0065D730 File Offset: 0x0065B930
|
|
public virtual Quaternion INMMPMMNFJF
|
|
{
|
|
get
|
|
{
|
|
if (!this.MEMOPCOHPLE)
|
|
{
|
|
return base.transform.rotation;
|
|
}
|
|
if (this.JJLFMCMNAPC != null)
|
|
{
|
|
return this.JJLFMCMNAPC.INMMPMMNFJF.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
return this.JOCPEJGANBB.transform.PAFJLHMDIMO(this.PEMJMCCBIIB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D21 RID: 93473 RVA: 0x0065D794 File Offset: 0x0065B994
|
|
protected virtual void IOKIFHGPMKI()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
this.GGPILMKBGGN = base.GetComponent<RigidbodyEx>();
|
|
this.OEHPDEDODGG = base.GetComponent<NetworkTransform>();
|
|
}
|
|
|
|
// Token: 0x06016D22 RID: 93474 RVA: 0x0065D7B4 File Offset: 0x0065B9B4
|
|
public void Pickup(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Pickup(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.JJLFMCMNAPC = LINNJLCFPEC;
|
|
}
|
|
|
|
// Token: 0x06016D23 RID: 93475 RVA: 0x0065D7CC File Offset: 0x0065B9CC
|
|
public virtual void InstantaneousUpdate()
|
|
{
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
if (this.KHKJLEPHFJG != null)
|
|
{
|
|
this.KHKJLEPHFJG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D24 RID: 93476 RVA: 0x0065D7F8 File Offset: 0x0065B9F8
|
|
protected void GHGIHOLEPBA()
|
|
{
|
|
this.IPFPJFBGANK(this.NIPACIOAHKA(), this.FJHEHAJCKKG());
|
|
}
|
|
|
|
// Token: 0x06016D25 RID: 93477 RVA: 0x0065D80C File Offset: 0x0065BA0C
|
|
public bool KLBLHDFMKIH(Transform DKCNBKFJCLK)
|
|
{
|
|
return !this.MEOKHJEHNEP() || DKCNBKFJCLK == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x06016D26 RID: 93478 RVA: 0x0065D828 File Offset: 0x0065BA28
|
|
public virtual void ONPCGBIMHKI()
|
|
{
|
|
this.JOCPEJGANBB = null;
|
|
this.KHEHEDPHLGP(null);
|
|
this.GNPGDEBAKOK = Vector3.zero;
|
|
this.PEMJMCCBIIB = Quaternion.identity;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.OEHPDEDODGG.JLPPFBKHLOJ = true;
|
|
}
|
|
this.GPKFCGDHHAM();
|
|
}
|
|
|
|
// Token: 0x06016D27 RID: 93479 RVA: 0x0065D894 File Offset: 0x0065BA94
|
|
protected void BGGNNJBBPBL(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.JHBFKKAFPFG()) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016D28 RID: 93480 RVA: 0x0065D920 File Offset: 0x0065BB20
|
|
protected void PIFNKCHIFBJ()
|
|
{
|
|
if (this.DEBCPMOEAKF != null)
|
|
{
|
|
base.StopCoroutine(this.DEBCPMOEAKF);
|
|
this.DEBCPMOEAKF = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D29 RID: 93481 RVA: 0x0065D940 File Offset: 0x0065BB40
|
|
protected void KKIOPCKEGMC()
|
|
{
|
|
if (this.DEBCPMOEAKF != null)
|
|
{
|
|
base.StopCoroutine(this.DEBCPMOEAKF);
|
|
this.DEBCPMOEAKF = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D2A RID: 93482 RVA: 0x0065D960 File Offset: 0x0065BB60
|
|
protected void KGJJAIDKHLF()
|
|
{
|
|
this.JMDOMAJBNEH(this.KIJCBJAJPID, this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016D2B RID: 93483 RVA: 0x0065D974 File Offset: 0x0065BB74
|
|
public void KOILDCAHBDK(RigidbodyPickup LINNJLCFPEC, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Pickup(LINNJLCFPEC.transform, GNPGDEBAKOK, PEMJMCCBIIB);
|
|
this.EDPCKGFKJBN(LINNJLCFPEC);
|
|
}
|
|
|
|
// Token: 0x06016D2C RID: 93484 RVA: 0x0065D98C File Offset: 0x0065BB8C
|
|
public virtual Vector3 BGGADGJCIIF()
|
|
{
|
|
if (!this.DIGCFIAANFF())
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.NINJGABLMBL() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.HIELCLPFGNH().HEPHHLLIDBC(), this.NINJGABLMBL().DBCENDGOCCK());
|
|
}
|
|
Quaternion quaternion = this.MGKEEGDPIKK().PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016D2D RID: 93485 RVA: 0x0065DA14 File Offset: 0x0065BC14
|
|
public bool IsAttachedTo(RigidbodyPickup IAENKMNDOMH)
|
|
{
|
|
return this.MEMOPCOHPLE && IAENKMNDOMH.transform == this.JOCPEJGANBB && IAENKMNDOMH == this.JJLFMCMNAPC;
|
|
}
|
|
|
|
// Token: 0x06016D2E RID: 93486 RVA: 0x0065DA48 File Offset: 0x0065BC48
|
|
protected RigidbodyPickup JPAJAIHADHK()
|
|
{
|
|
return this.HAKLDNDDNIH;
|
|
}
|
|
|
|
// Token: 0x06016D2F RID: 93487 RVA: 0x0065DA50 File Offset: 0x0065BC50
|
|
protected void ODAPEAPPAJA(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
|
|
{
|
|
Vector3 vector = (CIGPHKLAAOD - this.GGPILMKBGGN.CIGPHKLAAOD) / Time.fixedDeltaTime;
|
|
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(this.GGPILMKBGGN.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
|
|
this.GGPILMKBGGN.IGOFELJMFOF = vector.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
|
|
this.GGPILMKBGGN.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
|
|
}
|
|
|
|
// Token: 0x06016D30 RID: 93488 RVA: 0x0065DADC File Offset: 0x0065BCDC
|
|
protected void ACENJAAMEML()
|
|
{
|
|
this.KNDGIEAENPG(this.BGGADGJCIIF(), this.MGKEEGDPIKK());
|
|
}
|
|
|
|
// Token: 0x06016D31 RID: 93489 RVA: 0x0065DAF0 File Offset: 0x0065BCF0
|
|
public void HGBHMNPGHME(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = this.DFCABCNHHOD;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref this.DFCABCNHHOD, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06016D32 RID: 93490 RVA: 0x0065DB28 File Offset: 0x0065BD28
|
|
protected void MBFCNNGFFKG()
|
|
{
|
|
this.AMMCOMGDJMK(this.GCEBPCBHJJL(), this.INMMPMMNFJF);
|
|
}
|
|
|
|
// Token: 0x06016D33 RID: 93491 RVA: 0x0065DB3C File Offset: 0x0065BD3C
|
|
public virtual Vector3 BHGNGIADDDO()
|
|
{
|
|
if (!this.DIGCFIAANFF())
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.JPAJAIHADHK() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.NINJGABLMBL().HEPHHLLIDBC(), this.HIELCLPFGNH().GJLOMOIAHMP());
|
|
}
|
|
Quaternion quaternion = this.MGKEEGDPIKK().PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016D34 RID: 93492 RVA: 0x0065DBC4 File Offset: 0x0065BDC4
|
|
public bool IsAttachedTo(Transform DKCNBKFJCLK)
|
|
{
|
|
return this.MEMOPCOHPLE && DKCNBKFJCLK == this.JOCPEJGANBB;
|
|
}
|
|
|
|
// Token: 0x06016D35 RID: 93493 RVA: 0x0065DBE0 File Offset: 0x0065BDE0
|
|
public bool BPAKJECAPGD()
|
|
{
|
|
return this.<PNOFAFGIMHG>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06016D36 RID: 93494 RVA: 0x0065DBE8 File Offset: 0x0065BDE8
|
|
protected void LGENOOLFBLP(RigidbodyPickup NOBAPCOKFIL)
|
|
{
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.ACNBFBEKKIP(new Action(this.ACENJAAMEML));
|
|
}
|
|
this.HAKLDNDDNIH = NOBAPCOKFIL;
|
|
if (this.HAKLDNDDNIH != null)
|
|
{
|
|
this.HAKLDNDDNIH.KHKJLEPHFJG += this.GHGIHOLEPBA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06016D37 RID: 93495 RVA: 0x0065DC4C File Offset: 0x0065BE4C
|
|
protected void MBOKOBHGAOJ(bool NOBAPCOKFIL)
|
|
{
|
|
this.<PNOFAFGIMHG>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06016D38 RID: 93496 RVA: 0x0065DC58 File Offset: 0x0065BE58
|
|
public virtual Vector3 GCEBPCBHJJL()
|
|
{
|
|
if (!this.MEOKHJEHNEP())
|
|
{
|
|
return base.transform.position;
|
|
}
|
|
if (this.NINJGABLMBL() != null)
|
|
{
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.ECDKJAKBDHG().KBBIALIBBPE(), this.ECDKJAKBDHG().FJHEHAJCKKG());
|
|
}
|
|
Quaternion quaternion = this.GJLOMOIAHMP().PAFJLHMDIMO(Quaternion.Inverse(this.PEMJMCCBIIB));
|
|
return this.GNPGDEBAKOK.NPBELFEFJBA(this.JOCPEJGANBB.position, quaternion);
|
|
}
|
|
|
|
// Token: 0x06016D39 RID: 93497 RVA: 0x0065DCE0 File Offset: 0x0065BEE0
|
|
public virtual void Pickup(Transform CPGOLKDKDCF, Vector3 GNPGDEBAKOK, Quaternion PEMJMCCBIIB)
|
|
{
|
|
this.Release();
|
|
if (this.ModifyKinematicOnPickupRelease)
|
|
{
|
|
this.GGPILMKBGGN.KEOJKEJMDFM = true;
|
|
}
|
|
this.JOCPEJGANBB = CPGOLKDKDCF;
|
|
this.JJLFMCMNAPC = null;
|
|
this.GNPGDEBAKOK = GNPGDEBAKOK;
|
|
this.PEMJMCCBIIB = PEMJMCCBIIB;
|
|
if (this.GGPILMKBGGN != null)
|
|
{
|
|
this.OEHPDEDODGG.JLPPFBKHLOJ = base.BHCCHBHNHCG;
|
|
}
|
|
this.IMNJKOCAABC();
|
|
}
|
|
|
|
// Token: 0x04003FF5 RID: 16373
|
|
[FormerlySerializedAs("interpolateToHand")]
|
|
[SerializeField]
|
|
[Tooltip("If true then this will accelerate towards the pickup target over time. Otherwise snap.")]
|
|
protected bool interpolateOnPickup = true;
|
|
|
|
// Token: 0x04003FF6 RID: 16374
|
|
protected const float KOBLMBODGIK = 0.06f;
|
|
|
|
// Token: 0x04003FF7 RID: 16375
|
|
protected const float PIONMGIODGG = 0.5f;
|
|
|
|
// Token: 0x04003FFA RID: 16378
|
|
protected Coroutine DEBCPMOEAKF;
|
|
|
|
// Token: 0x04003FFB RID: 16379
|
|
protected RigidbodyEx GGPILMKBGGN;
|
|
|
|
// Token: 0x04003FFC RID: 16380
|
|
protected NetworkTransform OEHPDEDODGG;
|
|
|
|
// Token: 0x04003FFD RID: 16381
|
|
protected Transform JOCPEJGANBB;
|
|
|
|
// Token: 0x04003FFE RID: 16382
|
|
private RigidbodyPickup HAKLDNDDNIH;
|
|
|
|
// Token: 0x04003FFF RID: 16383
|
|
protected Vector3 GNPGDEBAKOK = Vector3.zero;
|
|
|
|
// Token: 0x04004000 RID: 16384
|
|
protected Quaternion PEMJMCCBIIB = Quaternion.identity;
|
|
|
|
// Token: 0x04004001 RID: 16385
|
|
[NonSerialized]
|
|
public bool ModifyKinematicOnPickupRelease = true;
|
|
}
|