using System; using UnityEngine; namespace RecRoom.Tools { // Token: 0x02000F80 RID: 3968 public class StickySphere : StickyBase { // Token: 0x06021240 RID: 135744 RVA: 0x0090BBE0 File Offset: 0x00909DE0 private void GGGJJBPJDLL(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.UseGlobal); bool flag = true; for (int i = 0; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.LJILHDMCKME() && this.LocalAttachToObject(photonView, false, true)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -112, QueryTriggerInteraction.UseGlobal); if (num > 0) { this.LocalAttachToObject(null, true, false); } } } // Token: 0x06021241 RID: 135745 RVA: 0x0090BD18 File Offset: 0x00909F18 private void PADFFGBDDMA(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.UseGlobal); bool flag = false; for (int i = 1; i < num; i++) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.LHEPJEHMAEC() && this.LocalAttachToObject(photonView, false, false)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -17, QueryTriggerInteraction.Ignore); if (num > 0) { this.LocalAttachToObject(null, true, false); } } } // Token: 0x06021242 RID: 135746 RVA: 0x0090BE50 File Offset: 0x0090A050 private void LLHEPJEOFHJ(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.BINMDCNOCON(base.BKDFLNGCINH); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = false; } } } // Token: 0x06021243 RID: 135747 RVA: 0x0090BED8 File Offset: 0x0090A0D8 protected virtual void OLEBPMMFNIF() { base.Awake(); base.PKAKOAMJLNN().PLPIAOHJBOB += this.GGGJJBPJDLL; base.IBAPEODEKBK += this.PMOKAKKNKPI; base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.LCLCMDPJNLA)); } // Token: 0x06021244 RID: 135748 RVA: 0x0090BF28 File Offset: 0x0090A128 protected override void EGJOBLEGKNP() { base.PKAKOAMJLNN().PLPIAOHJBOB -= this.PADFFGBDDMA; base.OnDestroy(); } // Token: 0x06021245 RID: 135749 RVA: 0x0090BF48 File Offset: 0x0090A148 private void JMHKJJJOMID(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.AddTool(base.BKDFLNGCINH, true); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = false; } } } // Token: 0x06021246 RID: 135750 RVA: 0x0090BFD0 File Offset: 0x0090A1D0 private void NHEEIBHGLNG(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.GIDBOCGKELL(base.PKAKOAMJLNN()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x06021247 RID: 135751 RVA: 0x0090C058 File Offset: 0x0090A258 private void DCBKHGIIIKO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.ExcludeTool(base.BKDFLNGCINH); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x06021248 RID: 135752 RVA: 0x0090C0E0 File Offset: 0x0090A2E0 private void LCLCMDPJNLA(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.EJBAHPGJHHN(base.JACCKOLABJP(), true); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x06021249 RID: 135753 RVA: 0x0090C168 File Offset: 0x0090A368 private void HPMDODEPCIC(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = true; for (int i = 1; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.ONAOMJAKKMA() && this.LocalAttachToObject(photonView, true, true)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -23, QueryTriggerInteraction.UseGlobal); if (num > 1) { this.LocalAttachToObject(null, false, true); } } } // Token: 0x0602124A RID: 135754 RVA: 0x0090C2A0 File Offset: 0x0090A4A0 private void HKFHMJBEPCB(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.ExcludeTool(base.PKAKOAMJLNN()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x0602124B RID: 135755 RVA: 0x0090C328 File Offset: 0x0090A528 protected override void OnDestroy() { base.BKDFLNGCINH.PLPIAOHJBOB -= this.JOPKIMBMMOM; base.OnDestroy(); } // Token: 0x0602124C RID: 135756 RVA: 0x0090C348 File Offset: 0x0090A548 private void EJJNMBINFLG(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = true; for (int i = 0; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.BIPEBCPEPKL() && this.LocalAttachToObject(photonView, false, true)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, 185, QueryTriggerInteraction.Ignore); if (num > 1) { this.LocalAttachToObject(null, false, false); } } } // Token: 0x0602124D RID: 135757 RVA: 0x0090C480 File Offset: 0x0090A680 private void ELHMCKONHGK(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = true; for (int i = 1; i < num; i++) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.JNFDHNMMHGN() && this.LocalAttachToObject(photonView, true, false)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, 12, QueryTriggerInteraction.UseGlobal); if (num > 1) { this.LocalAttachToObject(null, false, true); } } } // Token: 0x0602124E RID: 135758 RVA: 0x0090C5B8 File Offset: 0x0090A7B8 protected virtual void CHHOKIFAEDF() { base.JACCKOLABJP().PLPIAOHJBOB -= this.EJJNMBINFLG; base.OnDestroy(); } // Token: 0x0602124F RID: 135759 RVA: 0x0090C5D8 File Offset: 0x0090A7D8 private void GPCAIJDMONH(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.DOEFBDDOMOP(base.JACCKOLABJP()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x06021250 RID: 135760 RVA: 0x0090C660 File Offset: 0x0090A860 protected virtual void PBCGMHKELND() { base.Awake(); base.JACCKOLABJP().PLPIAOHJBOB += this.ELHMCKONHGK; base.IBAPEODEKBK += this.MLDBBJOHIBB; base.KJINJEHOEJJ += this.PIBFKJFNMHC; } // Token: 0x06021251 RID: 135761 RVA: 0x0090C6B0 File Offset: 0x0090A8B0 protected virtual void FKGKJOHOGMP() { base.JACCKOLABJP().PLPIAOHJBOB -= this.EJJNMBINFLG; base.OnDestroy(); } // Token: 0x06021252 RID: 135762 RVA: 0x0090C6D0 File Offset: 0x0090A8D0 protected virtual void JJEKHMENJFE() { base.DLCHNOFPONJ(); base.BKDFLNGCINH.PLPIAOHJBOB += this.HPMDODEPCIC; base.IBAPEODEKBK += this.DCBKHGIIIKO; base.KJINJEHOEJJ += this.JMHKJJJOMID; } // Token: 0x06021253 RID: 135763 RVA: 0x0090C720 File Offset: 0x0090A920 protected virtual void LFEBHHFENDK() { base.PKAKOAMJLNN().PLPIAOHJBOB -= this.JOPKIMBMMOM; base.OnDestroy(); } // Token: 0x06021254 RID: 135764 RVA: 0x0090C740 File Offset: 0x0090A940 private void JOPKIMBMMOM(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = false; for (int i = 0; i < num; i++) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.OMNGGJICBBI && this.LocalAttachToObject(photonView, false, true)) { flag = true; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, 18433, QueryTriggerInteraction.Ignore); if (num > 0) { this.LocalAttachToObject(null, false, true); } } } // Token: 0x06021255 RID: 135765 RVA: 0x0090C878 File Offset: 0x0090AA78 protected override void Awake() { base.Awake(); base.BKDFLNGCINH.PLPIAOHJBOB += this.JOPKIMBMMOM; base.IBAPEODEKBK += this.DCBKHGIIIKO; base.KJINJEHOEJJ += this.JMHKJJJOMID; } // Token: 0x06021256 RID: 135766 RVA: 0x0090C8C8 File Offset: 0x0090AAC8 private void EFGLIJNMAEA(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = false; for (int i = 0; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.MLNMONBHHBO() && this.LocalAttachToObject(photonView, true, true)) { flag = true; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -160, QueryTriggerInteraction.UseGlobal); if (num > 0) { this.LocalAttachToObject(null, true, true); } } } // Token: 0x06021258 RID: 135768 RVA: 0x0090CA28 File Offset: 0x0090AC28 private void MLDBBJOHIBB(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.PMDJPMPLPKP(base.JACCKOLABJP()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x06021259 RID: 135769 RVA: 0x0090CAB0 File Offset: 0x0090ACB0 protected virtual void GJGEACMGLKP() { base.Awake(); base.BKDFLNGCINH.PLPIAOHJBOB += this.JOPKIMBMMOM; base.IBAPEODEKBK += this.PEFCCGCGIGO; base.KJINJEHOEJJ += this.LCLCMDPJNLA; } // Token: 0x0602125A RID: 135770 RVA: 0x0090CB00 File Offset: 0x0090AD00 protected virtual void IABDGAJLFNK() { base.DLCHNOFPONJ(); base.BKDFLNGCINH.PLPIAOHJBOB += this.IOLNOKBMPII; base.IBAPEODEKBK += this.PEFCCGCGIGO; base.GHPFPLINAFL(new StickyBase.LONPOBKIBCO(this.JMHKJJJOMID)); } // Token: 0x0602125B RID: 135771 RVA: 0x0090CB50 File Offset: 0x0090AD50 private void PIBFKJFNMHC(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.JDBLPAAALNB(base.JACCKOLABJP(), true); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = false; } } } // Token: 0x0602125C RID: 135772 RVA: 0x0090CBD8 File Offset: 0x0090ADD8 private void JMCDJPEIMNI(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.UseGlobal); bool flag = false; for (int i = 0; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.MLNMONBHHBO() && this.LocalAttachToObject(photonView, false, true)) { flag = true; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -143, QueryTriggerInteraction.UseGlobal); if (num > 1) { this.LocalAttachToObject(null, false, false); } } } // Token: 0x0602125D RID: 135773 RVA: 0x0090CD10 File Offset: 0x0090AF10 private void PEFCCGCGIGO(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.BINMDCNOCON(base.PKAKOAMJLNN()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.BKDFLNGCINH.NJPKPAFHFNM) { toolCollider.GJPHILMECKE = false; } } } // Token: 0x0602125E RID: 135774 RVA: 0x0090CD98 File Offset: 0x0090AF98 private void LLKINLOJCAM(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.DOBHNNPGCEM(base.PKAKOAMJLNN()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.JACCKOLABJP().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = true; } } } // Token: 0x0602125F RID: 135775 RVA: 0x0090CE20 File Offset: 0x0090B020 protected virtual void MNJCOFIGKEN() { base.BKDFLNGCINH.PLPIAOHJBOB -= this.GGGJJBPJDLL; base.OnDestroy(); } // Token: 0x06021260 RID: 135776 RVA: 0x0090CE40 File Offset: 0x0090B040 private void PMOKAKKNKPI(StickyBase ENBMEDIFBLM, bool PGFDDHPEDCI) { if (SingletonMonoBehaviour.BOCFJBNNEFP) { SingletonMonoBehaviour.NCKMBFBMBFM.DOEFBDDOMOP(base.PKAKOAMJLNN()); } if (this.disableCollidersWhenAttached) { foreach (ToolCollider toolCollider in base.PKAKOAMJLNN().NJPKPAFHFNM) { toolCollider.GJPHILMECKE = false; } } } // Token: 0x06021261 RID: 135777 RVA: 0x0090CEC8 File Offset: 0x0090B0C8 private void OMHCNABGNCA(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.UseGlobal); bool flag = false; for (int i = 0; i < num; i++) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.CEGDLFAENEJ() && this.LocalAttachToObject(photonView, false, false)) { flag = true; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, -141, QueryTriggerInteraction.UseGlobal); if (num > 1) { this.LocalAttachToObject(null, false, false); } } } // Token: 0x06021262 RID: 135778 RVA: 0x0090D000 File Offset: 0x0090B200 private void IOLNOKBMPII(Tool ENBMEDIFBLM) { int num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, (int)this.layerMaskForCollision, QueryTriggerInteraction.Ignore); bool flag = false; for (int i = 1; i < num; i += 0) { PhotonView photonView = this.PKOHDAPFMMF[i].gameObject.GetComponent(); photonView = ((!(photonView != null)) ? this.PKOHDAPFMMF[i].gameObject.GetComponentInParent() : photonView); if (photonView != null && photonView != base.HOPJELLOPNJ() && this.LocalAttachToObject(photonView, false, true)) { flag = false; break; } } if (!flag) { num = Physics.OverlapSphereNonAlloc(this.sphereCollider.transform.position, this.sphereCollider.transform.lossyScale.x * this.sphereCollider.radius, this.PKOHDAPFMMF, 193, QueryTriggerInteraction.UseGlobal); if (num > 0) { this.LocalAttachToObject(null, false, false); } } } // Token: 0x04005613 RID: 22035 [SerializeField] private bool disableCollidersWhenAttached = true; // Token: 0x04005614 RID: 22036 [SerializeField] private LCIGHPPLKCA layerMaskForCollision = LCIGHPPLKCA.AnyPlayerPhysics; // Token: 0x04005615 RID: 22037 [SerializeField] [ENMFCLPAKBJ(FOGKDGELKHN.SelfAndChildren, false)] private SphereCollider sphereCollider; // Token: 0x04005616 RID: 22038 private Collider[] PKOHDAPFMMF = new Collider[64]; } }