Files
2026-06-04 11:42:34 +02:00

1609 lines
62 KiB
C#

using System;
using System.Collections;
using RecRoom;
using UnityEngine;
// Token: 0x02000F7D RID: 3965
public class StickyNote : StickyBase
{
// Token: 0x06021109 RID: 135433 RVA: 0x009023EC File Offset: 0x009005EC
private void AJLPHHLACHM(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.HBBKDPMICBE(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602110A RID: 135434 RVA: 0x0090249C File Offset: 0x0090069C
private void DDCEPPIFOOL(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602110B RID: 135435 RVA: 0x0090254C File Offset: 0x0090074C
private void ECKIGFKDCNN(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602110C RID: 135436 RVA: 0x009025FC File Offset: 0x009007FC
private void OBAJFDFMCEN(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602110D RID: 135437 RVA: 0x0090267C File Offset: 0x0090087C
protected virtual void ABPADIIMLAN()
{
base.OnDestroy();
if (base.JACCKOLABJP() != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB -= this.ENHCIGCLMEP;
}
}
// Token: 0x0602110E RID: 135438 RVA: 0x009026AC File Offset: 0x009008AC
private void HPOLMGAANAC(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.EIGJEJDLHPI(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602110F RID: 135439 RVA: 0x0090275C File Offset: 0x0090095C
private IEnumerator AGHCLODDMDL(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
Vector3 velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
Vector3 angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (float num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
Vector3 vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
Vector3 eulerAngles = AMOLKNCPJAM.eulerAngles;
Vector3 eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
Quaternion quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
PhotonView componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021110 RID: 135440 RVA: 0x0090278C File Offset: 0x0090098C
private void GILOEPOMHNB(Tool ENBMEDIFBLM)
{
if (base.JNOCCMDBMIO())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 875f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 158, QueryTriggerInteraction.Ignore);
for (int i = 0; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.AMEALGOENPF(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.DKJPOLKFFHN(vector3, quaternion, vector2))
{
base.StartCoroutine(this.CEHFEKNDPHJ(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021111 RID: 135441 RVA: 0x009028AC File Offset: 0x00900AAC
private void CIMODPFCODO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021112 RID: 135442 RVA: 0x0090292C File Offset: 0x00900B2C
protected virtual void NDIKALAHLIJ()
{
base.DLCHNOFPONJ();
base.IBAPEODEKBK += this.PMDLNBLKCAD;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.PCHAKGOOJLF));
if (base.BKDFLNGCINH != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB += this.KJPFAFCPAMB;
}
}
// Token: 0x06021113 RID: 135443 RVA: 0x0090298C File Offset: 0x00900B8C
private void JMDOMAJBNEH(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021114 RID: 135444 RVA: 0x00902A34 File Offset: 0x00900C34
private IEnumerator NNPBBFBFMGB(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021115 RID: 135445 RVA: 0x00902A64 File Offset: 0x00900C64
private void LLKINLOJCAM(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.HCOFKOHJGHP(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021116 RID: 135446 RVA: 0x00902B14 File Offset: 0x00900D14
protected virtual void GCOFOGPIJJA()
{
base.Awake();
base.IBAPEODEKBK += this.OGJDPCLHMNE;
base.KJINJEHOEJJ += this.MDBLNOFHPFD;
if (base.PKAKOAMJLNN() != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB += this.ICMHFAPPMAM;
}
}
// Token: 0x06021117 RID: 135447 RVA: 0x00902B74 File Offset: 0x00900D74
private void FPGCFHONJJG(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.OBNLFDLKCBJ(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021118 RID: 135448 RVA: 0x00902C24 File Offset: 0x00900E24
private IEnumerator KPAOBDONEMC(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021119 RID: 135449 RVA: 0x00902C54 File Offset: 0x00900E54
private void KIODAJMNAKO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602111A RID: 135450 RVA: 0x00902CD4 File Offset: 0x00900ED4
private void JMHKJJJOMID(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602111B RID: 135451 RVA: 0x00902D54 File Offset: 0x00900F54
private IEnumerator IONCLOBPGHA(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x0602111C RID: 135452 RVA: 0x00902D84 File Offset: 0x00900F84
private void NMENHHDHANL(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.JACCKOLABJP().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x0602111D RID: 135453 RVA: 0x00902E2C File Offset: 0x0090102C
protected virtual void PAKPLLPDIOG()
{
base.DLCHNOFPONJ();
base.IBAPEODEKBK += this.OGJDPCLHMNE;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.IAGNIGJBOED));
if (base.PKAKOAMJLNN() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB += this.KJPFAFCPAMB;
}
}
// Token: 0x0602111E RID: 135454 RVA: 0x00902E8C File Offset: 0x0090108C
private void ENHCIGCLMEP(Tool ENBMEDIFBLM)
{
if (base.DGLOKLCEMLH())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 326f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 8, QueryTriggerInteraction.UseGlobal);
for (int i = 1; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.KNNBHCONLAO(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.OPGFMMBLELF(vector3, quaternion, vector2))
{
base.StartCoroutine(this.GKPKJAPPOFK(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x0602111F RID: 135455 RVA: 0x00902FAC File Offset: 0x009011AC
protected virtual void ELBDAIAMMGB()
{
base.Awake();
base.IBAPEODEKBK += this.HPOLMGAANAC;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.IAGNIGJBOED));
if (base.JACCKOLABJP() != null)
{
base.BKDFLNGCINH.PLPIAOHJBOB += this.KJPFAFCPAMB;
}
}
// Token: 0x06021120 RID: 135456 RVA: 0x0090300C File Offset: 0x0090120C
private void HBBNIHOJAEM(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.JACCKOLABJP().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.PDJMHMHFKIA(vector2.GGPAIPKFIIO());
base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021121 RID: 135457 RVA: 0x009030B4 File Offset: 0x009012B4
private void HFADAOICDHC(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.JHBFKKAFPFG()) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.PKAKOAMJLNN().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021122 RID: 135458 RVA: 0x0090315C File Offset: 0x0090135C
private void CDMJIJJCGEF(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.JHBFKKAFPFG()) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.PKAKOAMJLNN().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021123 RID: 135459 RVA: 0x00903204 File Offset: 0x00901404
private IEnumerator JICPDHHBPDJ(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021124 RID: 135460 RVA: 0x00903234 File Offset: 0x00901434
private void FFEACNNBEFE(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.CCHAEPGJJLI = vector2.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021125 RID: 135461 RVA: 0x009032DC File Offset: 0x009014DC
private void LDNCGBOOKHO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021127 RID: 135463 RVA: 0x00903370 File Offset: 0x00901570
protected virtual void KMCJNIPIKBA()
{
base.Awake();
base.IBAPEODEKBK += this.NHJGNGOJCMP;
base.KJINJEHOEJJ += this.CIMODPFCODO;
if (base.JACCKOLABJP() != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB += this.KJPFAFCPAMB;
}
}
// Token: 0x06021128 RID: 135464 RVA: 0x009033D0 File Offset: 0x009015D0
private void NIPCADLOCJP(Tool ENBMEDIFBLM)
{
if (base.BHCCHBHNHCG)
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 2f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 2048, QueryTriggerInteraction.Ignore);
for (int i = 0; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.GetNoteAttachPosition(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.WillFitOnBoard(vector3, quaternion, vector2))
{
base.StartCoroutine(this.AGHCLODDMDL(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021129 RID: 135465 RVA: 0x009034F0 File Offset: 0x009016F0
private void PCHAKGOOJLF(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602112A RID: 135466 RVA: 0x00903570 File Offset: 0x00901770
private void BCBJLJIPEKL(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602112B RID: 135467 RVA: 0x009035F0 File Offset: 0x009017F0
protected virtual void FDBHMLOEHCE()
{
base.DLCHNOFPONJ();
base.IBAPEODEKBK += this.DDCEPPIFOOL;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.JPMAAPMIDGI));
if (base.JACCKOLABJP() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB += this.AHBIKCGMLAM;
}
}
// Token: 0x0602112C RID: 135468 RVA: 0x00903650 File Offset: 0x00901850
private void PMDLNBLKCAD(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602112D RID: 135469 RVA: 0x00903700 File Offset: 0x00901900
private IEnumerator NKLDDFGDEJK(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x0602112E RID: 135470 RVA: 0x00903730 File Offset: 0x00901930
private IEnumerator CEHFEKNDPHJ(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x0602112F RID: 135471 RVA: 0x00903760 File Offset: 0x00901960
private IEnumerator LLINPBCHHHA(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021130 RID: 135472 RVA: 0x00903790 File Offset: 0x00901990
private void FMCAJDGGNDB(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.PKAKOAMJLNN().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.PKAKOAMJLNN().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021131 RID: 135473 RVA: 0x00903838 File Offset: 0x00901A38
private IEnumerator IOCBKJCKKLL(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021132 RID: 135474 RVA: 0x00903868 File Offset: 0x00901A68
private void AACIJLPKFOF(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021133 RID: 135475 RVA: 0x009038E8 File Offset: 0x00901AE8
private IEnumerator JLBBFGJOGLI(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021134 RID: 135476 RVA: 0x00903918 File Offset: 0x00901B18
private void NINJGGOEHPO(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.PKAKOAMJLNN().BOLBONELAEF.JHBFKKAFPFG()) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.PKAKOAMJLNN().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.PKAKOAMJLNN().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021135 RID: 135477 RVA: 0x009039C0 File Offset: 0x00901BC0
private void MDEGPHNFIPE(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021136 RID: 135478 RVA: 0x00903A70 File Offset: 0x00901C70
private IEnumerator NOMFNDJPINC(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021137 RID: 135479 RVA: 0x00903AA0 File Offset: 0x00901CA0
private void BIADDJEKJHM(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.HBBKDPMICBE(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021138 RID: 135480 RVA: 0x00903B50 File Offset: 0x00901D50
private IEnumerator DCJDNHBCCGA(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021139 RID: 135481 RVA: 0x00903B80 File Offset: 0x00901D80
private void FCLNIDENJHH(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602113A RID: 135482 RVA: 0x00903C00 File Offset: 0x00901E00
private void FGCHEPIFKGE(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602113B RID: 135483 RVA: 0x00903C80 File Offset: 0x00901E80
protected override void OnDestroy()
{
base.OnDestroy();
if (base.BKDFLNGCINH != null)
{
base.BKDFLNGCINH.PLPIAOHJBOB -= this.NIPCADLOCJP;
}
}
// Token: 0x0602113C RID: 135484 RVA: 0x00903CB0 File Offset: 0x00901EB0
private void NHNKOMOMDDJ(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.PKAKOAMJLNN().BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.JACCKOLABJP().BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x0602113D RID: 135485 RVA: 0x00903D58 File Offset: 0x00901F58
protected virtual void BOOMNFIGOAN()
{
base.DLCHNOFPONJ();
base.IBAPEODEKBK += this.AJLPHHLACHM;
base.KJINJEHOEJJ += this.PCHAKGOOJLF;
if (base.JACCKOLABJP() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB += this.GILOEPOMHNB;
}
}
// Token: 0x0602113E RID: 135486 RVA: 0x00903DB8 File Offset: 0x00901FB8
protected virtual void EKCMKGMLBDG()
{
base.OnDestroy();
if (base.BKDFLNGCINH != null)
{
base.JACCKOLABJP().PLPIAOHJBOB -= this.GILOEPOMHNB;
}
}
// Token: 0x0602113F RID: 135487 RVA: 0x00903DE8 File Offset: 0x00901FE8
private void HAKJIPHMADM(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021140 RID: 135488 RVA: 0x00903E68 File Offset: 0x00902068
private IEnumerator HADOOCJMFBB(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021141 RID: 135489 RVA: 0x00903E98 File Offset: 0x00902098
private void DCBKHGIIIKO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021142 RID: 135490 RVA: 0x00903F48 File Offset: 0x00902148
private void BCIPHAOJAKG(Tool ENBMEDIFBLM)
{
if (base.BHCCHBHNHCG)
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 1627f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 151, QueryTriggerInteraction.Ignore);
for (int i = 1; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.GJJLEIOOAAL(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.FGOLDLJNFGH(vector3, quaternion, vector2))
{
base.StartCoroutine(this.NNPBBFBFMGB(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021143 RID: 135491 RVA: 0x00904068 File Offset: 0x00902268
private void HKIJAFGHOPP(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021144 RID: 135492 RVA: 0x009040E8 File Offset: 0x009022E8
protected virtual void BBKPAKKLOGB()
{
base.Awake();
base.IBAPEODEKBK += this.FPGCFHONJJG;
base.KJINJEHOEJJ += this.KIODAJMNAKO;
if (base.BKDFLNGCINH != null)
{
base.JACCKOLABJP().PLPIAOHJBOB += this.NPDFFCFNFAF;
}
}
// Token: 0x06021145 RID: 135493 RVA: 0x00904148 File Offset: 0x00902348
private IEnumerator GKPKJAPPOFK(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021146 RID: 135494 RVA: 0x00904178 File Offset: 0x00902378
private void CFEKHMHAJND(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.LAAGBHIGNGH(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021147 RID: 135495 RVA: 0x00904228 File Offset: 0x00902428
private void OGJDPCLHMNE(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021148 RID: 135496 RVA: 0x009042D8 File Offset: 0x009024D8
protected virtual void EFGJJPCENBJ()
{
base.OnDestroy();
if (base.JACCKOLABJP() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB -= this.KOMDENKJMCN;
}
}
// Token: 0x06021149 RID: 135497 RVA: 0x00904308 File Offset: 0x00902508
protected virtual void CENMIOJCICJ()
{
base.Awake();
base.IBAPEODEKBK += this.NHJGNGOJCMP;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.FCLNIDENJHH));
if (base.BKDFLNGCINH != null)
{
base.BKDFLNGCINH.PLPIAOHJBOB += this.KJPFAFCPAMB;
}
}
// Token: 0x0602114A RID: 135498 RVA: 0x00904368 File Offset: 0x00902568
private void NHJGNGOJCMP(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.ResetCleanupOriginalPosition(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x0602114B RID: 135499 RVA: 0x00904418 File Offset: 0x00902618
protected virtual void IAKCEMICIDN()
{
base.OnDestroy();
if (base.PKAKOAMJLNN() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB -= this.NPDFFCFNFAF;
}
}
// Token: 0x0602114C RID: 135500 RVA: 0x00904448 File Offset: 0x00902648
private void MGILMNLKPMC(Tool ENBMEDIFBLM)
{
if (base.BHCCHBHNHCG)
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 455f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, -53, QueryTriggerInteraction.Ignore);
for (int i = 0; i < num; i += 0)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.BOGEAKDNBHA(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.PJDCHPGAPDM(vector3, quaternion, vector2))
{
base.StartCoroutine(this.HADOOCJMFBB(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x0602114D RID: 135501 RVA: 0x00904568 File Offset: 0x00902768
private IEnumerator GJPGDBPDNLK(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x0602114F RID: 135503 RVA: 0x009045B8 File Offset: 0x009027B8
private IEnumerator DCJMOALGBDI(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x06021150 RID: 135504 RVA: 0x009045E8 File Offset: 0x009027E8
private void NPDFFCFNFAF(Tool ENBMEDIFBLM)
{
if (base.GANDPDNCOKF())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 224f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 52, QueryTriggerInteraction.Ignore);
for (int i = 1; i < num; i += 0)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.GOMHDGIAIBM(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.GOBJKFDCBEJ(vector3, quaternion, vector2))
{
base.StartCoroutine(this.KPAOBDONEMC(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021151 RID: 135505 RVA: 0x00904708 File Offset: 0x00902908
private void KJPFAFCPAMB(Tool ENBMEDIFBLM)
{
if (base.DFJFKOLLEMK())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 952f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 159, QueryTriggerInteraction.Ignore);
for (int i = 0; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.KNNBHCONLAO(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.JOFKPNFAPJM(vector3, quaternion, vector2))
{
base.StartCoroutine(this.KPAOBDONEMC(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021152 RID: 135506 RVA: 0x00904828 File Offset: 0x00902A28
private void NBBFHJBCELI(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.LAAGBHIGNGH(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021153 RID: 135507 RVA: 0x009048D8 File Offset: 0x00902AD8
private void KOMDENKJMCN(Tool ENBMEDIFBLM)
{
if (base.DGLKKANNBPD())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 572f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 118, QueryTriggerInteraction.UseGlobal);
for (int i = 0; i < num; i++)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.JLNHPOMKFFJ(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.CANEJHOAFHH(vector3, quaternion, vector2))
{
base.StartCoroutine(this.NNPBBFBFMGB(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021154 RID: 135508 RVA: 0x009049F8 File Offset: 0x00902BF8
private void JPMAAPMIDGI(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021155 RID: 135509 RVA: 0x00904A78 File Offset: 0x00902C78
protected virtual void HHGIHIJFDHL()
{
base.DLCHNOFPONJ();
base.IBAPEODEKBK += this.NHJGNGOJCMP;
base.KJINJEHOEJJ += this.CIMODPFCODO;
if (base.BKDFLNGCINH != null)
{
base.JACCKOLABJP().PLPIAOHJBOB += this.NIPCADLOCJP;
}
}
// Token: 0x06021156 RID: 135510 RVA: 0x00904AD8 File Offset: 0x00902CD8
protected virtual void KDHBBCGHDMC()
{
base.OnDestroy();
if (base.PKAKOAMJLNN() != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB -= this.KJPFAFCPAMB;
}
}
// Token: 0x06021157 RID: 135511 RVA: 0x00904B08 File Offset: 0x00902D08
protected virtual void LOMIACBDFOB()
{
base.OnDestroy();
if (base.PKAKOAMJLNN() != null)
{
base.JACCKOLABJP().PLPIAOHJBOB -= this.MGILMNLKPMC;
}
}
// Token: 0x06021158 RID: 135512 RVA: 0x00904B38 File Offset: 0x00902D38
protected virtual void PMLEDKFHAEJ()
{
base.OnDestroy();
if (base.BKDFLNGCINH != null)
{
base.JACCKOLABJP().PLPIAOHJBOB -= this.NPDFFCFNFAF;
}
}
// Token: 0x06021159 RID: 135513 RVA: 0x00904B68 File Offset: 0x00902D68
private void OKOIGLPAGOK(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602115A RID: 135514 RVA: 0x00904BE8 File Offset: 0x00902DE8
protected override void FNNCEMJECLP()
{
base.Awake();
base.IBAPEODEKBK += this.OGJDPCLHMNE;
base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.MDBLNOFHPFD));
if (base.PKAKOAMJLNN() != null)
{
base.BKDFLNGCINH.PLPIAOHJBOB += this.ENHCIGCLMEP;
}
}
// Token: 0x0602115B RID: 135515 RVA: 0x00904C48 File Offset: 0x00902E48
private void ICMHFAPPMAM(Tool ENBMEDIFBLM)
{
if (base.DGLOKLCEMLH())
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 1369f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, 172, QueryTriggerInteraction.Ignore);
for (int i = 1; i < num; i += 0)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.GKNAHKNBJME(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.WillFitOnBoard(vector3, quaternion, vector2))
{
base.StartCoroutine(this.NNPBBFBFMGB(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x0602115C RID: 135516 RVA: 0x00904D68 File Offset: 0x00902F68
private IEnumerator NKLFAHCMKHK(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x0602115D RID: 135517 RVA: 0x00904D98 File Offset: 0x00902F98
protected virtual void PBCGMHKELND()
{
base.Awake();
base.IBAPEODEKBK += this.BAAIBJKCPNB;
base.KJINJEHOEJJ += this.BCBJLJIPEKL;
if (base.JACCKOLABJP() != null)
{
base.PKAKOAMJLNN().PLPIAOHJBOB += this.GILOEPOMHNB;
}
}
// Token: 0x0602115E RID: 135518 RVA: 0x00904DF8 File Offset: 0x00902FF8
private void BAAIBJKCPNB(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
ToolCleanup component = base.GetComponent<ToolCleanup>();
if (component != null)
{
component.HCOFKOHJGHP(base.transform.position, base.transform.rotation);
}
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onAttachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x0602115F RID: 135519 RVA: 0x00904EA8 File Offset: 0x009030A8
private void AHBIKCGMLAM(Tool ENBMEDIFBLM)
{
if (base.BHCCHBHNHCG)
{
Vector3 vector = base.transform.TransformPoint(this.boxCollider.center);
Vector3 vector2 = this.boxCollider.size.NAHCAKKCICD(this.boxCollider.transform.lossyScale) / 722f;
int num = Physics.BoxCastNonAlloc(vector, vector2, base.transform.forward, StickyNote.AJDJKDELMKL, base.transform.rotation, this.castDistance, -177, QueryTriggerInteraction.UseGlobal);
for (int i = 1; i < num; i += 0)
{
StickyNoteBoard component = StickyNote.AJDJKDELMKL[i].collider.GetComponent<StickyNoteBoard>();
if (component != null)
{
Vector3 vector3;
Quaternion quaternion;
component.GHAKCNCJJFK(base.transform, out vector3, out quaternion);
if (Vector3.Angle(base.transform.forward, component.transform.forward) < this.maxStickAngle && component.CBANODMCJLG(vector3, quaternion, vector2))
{
base.StartCoroutine(this.IONCLOBPGHA(component, vector3, quaternion));
break;
}
}
}
}
}
// Token: 0x06021160 RID: 135520 RVA: 0x00904FC8 File Offset: 0x009031C8
private void IAGNIGJBOED(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = false;
}
}
// Token: 0x06021161 RID: 135521 RVA: 0x00905048 File Offset: 0x00903248
protected override void Awake()
{
base.Awake();
base.IBAPEODEKBK += this.DCBKHGIIIKO;
base.KJINJEHOEJJ += this.JMHKJJJOMID;
if (base.BKDFLNGCINH != null)
{
base.BKDFLNGCINH.PLPIAOHJBOB += this.NIPCADLOCJP;
}
}
// Token: 0x06021162 RID: 135522 RVA: 0x009050A8 File Offset: 0x009032A8
private void LDMEHMNMLPP(Vector3 CIGPHKLAAOD, Quaternion IJGPPOIJDKO)
{
Vector3 vector = (CIGPHKLAAOD - base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD) / Time.fixedDeltaTime;
Vector3 vector2 = NNGFEGAEJPG.PGPNGNDCJKL(base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO, IJGPPOIJDKO) / Time.fixedDeltaTime;
base.JACCKOLABJP().BOLBONELAEF.IGOFELJMFOF = vector.GGPAIPKFIIO();
base.PKAKOAMJLNN().BOLBONELAEF.BKADEFKCPMC(vector2.GGPAIPKFIIO());
base.JACCKOLABJP().BOLBONELAEF.CIGPHKLAAOD = CIGPHKLAAOD.GGPAIPKFIIO();
base.BKDFLNGCINH.BOLBONELAEF.IJGPPOIJDKO = IJGPPOIJDKO.KPGAMOAKJKF();
}
// Token: 0x06021163 RID: 135523 RVA: 0x00905150 File Offset: 0x00903350
private void MDBLNOFHPFD(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI)
{
if (!PGFDDHPEDCI)
{
AudioManager.Play3DSFX(this.onDetachAudio, base.transform.position, null);
}
foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM)
{
toolCollider.GJPHILMECKE = true;
}
}
// Token: 0x06021164 RID: 135524 RVA: 0x009051D0 File Offset: 0x009033D0
private IEnumerator NKEGAIKCHAG(StickyNoteBoard AHBBDBNGFKB, Vector3 FHFPOPFBEPP, Quaternion AMOLKNCPJAM)
{
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
velocity = base.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
angularVelocity = base.BKDFLNGCINH.BOLBONELAEF.CCHAEPGJJLI;
for (num = 0f; num < 0.06f; num += Time.fixedDeltaTime)
{
vector = Vector3.SmoothDamp(base.BKDFLNGCINH.BOLBONELAEF.CIGPHKLAAOD, FHFPOPFBEPP, ref velocity, 0.06f);
eulerAngles = AMOLKNCPJAM.eulerAngles;
eulerAngles2 = base.transform.rotation.eulerAngles;
eulerAngles2.x = Mathf.SmoothDampAngle(eulerAngles2.x, eulerAngles.x, ref angularVelocity.x, 0.06f);
eulerAngles2.y = Mathf.SmoothDampAngle(eulerAngles2.y, eulerAngles.y, ref angularVelocity.y, 0.06f);
eulerAngles2.z = Mathf.SmoothDampAngle(eulerAngles2.z, eulerAngles.z, ref angularVelocity.z, 0.06f);
quaternion = Quaternion.Euler(eulerAngles2);
this.JMDOMAJBNEH(vector, quaternion);
yield return new WaitForFixedUpdate();
}
base.transform.position = FHFPOPFBEPP;
base.transform.rotation = AMOLKNCPJAM;
base.BKDFLNGCINH.BOLBONELAEF.ClearVelocity();
AHBBDBNGFKB.MoveNoteToTop(this);
componentInParent = AHBBDBNGFKB.gameObject.GetComponentInParent<PhotonView>();
this.LocalAttachToObject(componentInParent, false, true);
yield break;
}
// Token: 0x040055F9 RID: 22009
[SerializeField]
private float maxStickAngle = 45f;
// Token: 0x040055FA RID: 22010
[SerializeField]
private float castDistance = 0.4f;
// Token: 0x040055FB RID: 22011
[SerializeField]
private BoxCollider boxCollider;
// Token: 0x040055FC RID: 22012
[SerializeField]
[Header("Sticky Note Audio")]
private RecRoomAudioClip onDetachAudio;
// Token: 0x040055FD RID: 22013
[SerializeField]
private RecRoomAudioClip onAttachAudio;
// Token: 0x040055FE RID: 22014
private const int KJNPNCFBJLN = 256;
// Token: 0x040055FF RID: 22015
private static RaycastHit[] AJDJKDELMKL = new RaycastHit[256];
// Token: 0x04005600 RID: 22016
private const float NJCPJCEAGKO = 0.06f;
}