1730 lines
47 KiB
C#
1730 lines
47 KiB
C#
using System;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200009D RID: 157
|
|
public class PokerChipGroup : ToolGroup
|
|
{
|
|
// Token: 0x060020F2 RID: 8434 RVA: 0x000989A0 File Offset: 0x00096BA0
|
|
private Vector3 FJNKFJEPCEE()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 167f, insideUnitCircle.y) * 880f;
|
|
}
|
|
|
|
// Token: 0x060020F3 RID: 8435 RVA: 0x000989D8 File Offset: 0x00096BD8
|
|
protected virtual void APEBEAPOJIO()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.ALIPHJOAMNJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020F4 RID: 8436 RVA: 0x00098A08 File Offset: 0x00096C08
|
|
private void DKPNPAIGBKG()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ICBPPEOBHBG(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020F5 RID: 8437 RVA: 0x00098A24 File Offset: 0x00096C24
|
|
private bool GADLGLPPKAA()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) <= 649f;
|
|
}
|
|
|
|
// Token: 0x17000090 RID: 144
|
|
// (get) Token: 0x060020F6 RID: 8438 RVA: 0x00098A48 File Offset: 0x00096C48
|
|
private bool KLJAGMINBIG
|
|
{
|
|
get
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) <= 0f;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020F7 RID: 8439 RVA: 0x00098A6C File Offset: 0x00096C6C
|
|
protected virtual void JFFLHAMMGAH()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020F8 RID: 8440 RVA: 0x00098A9C File Offset: 0x00096C9C
|
|
public virtual ToolGroupElement BOMCHOBHEBM(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.HEPLHIGIBFE();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.LLEJGIGBACG())
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x060020F9 RID: 8441 RVA: 0x00098B08 File Offset: 0x00096D08
|
|
public virtual ToolGroupElement GOBGAIJGCKL(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.NBFPCFBNGCL();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.CPMLGCIGBJM())
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x060020FA RID: 8442 RVA: 0x00098B74 File Offset: 0x00096D74
|
|
private void Start()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020FB RID: 8443 RVA: 0x00098B90 File Offset: 0x00096D90
|
|
private void EONMIHOPPOJ()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.HOFCLPKMEKC(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020FC RID: 8444 RVA: 0x00098BAC File Offset: 0x00096DAC
|
|
protected virtual void GFMEBOFINDJ()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060020FD RID: 8445 RVA: 0x00098BDC File Offset: 0x00096DDC
|
|
private Vector3 LDGCCHOHMLH()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 128f, insideUnitCircle.y) * 945f;
|
|
}
|
|
|
|
// Token: 0x060020FE RID: 8446 RVA: 0x00098C14 File Offset: 0x00096E14
|
|
private ToolGroupElement CCEMKGAOJPM()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GNGCNLDHMFE())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
|
|
// Token: 0x060020FF RID: 8447 RVA: 0x00098C54 File Offset: 0x00096E54
|
|
protected virtual void ABJPAGDGHFA()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002100 RID: 8448 RVA: 0x00098C84 File Offset: 0x00096E84
|
|
protected virtual void CJAHNDDKCPC()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002101 RID: 8449 RVA: 0x00098CB4 File Offset: 0x00096EB4
|
|
protected virtual void KDHBBCGHDMC()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002102 RID: 8450 RVA: 0x00098CE4 File Offset: 0x00096EE4
|
|
protected virtual void HNNPMCPMPLN()
|
|
{
|
|
if (this.OLLFKLKFBBI.Count > 1)
|
|
{
|
|
Vector3 vector = base.transform.InverseTransformPoint(this.stackOffsetTransform.position);
|
|
Quaternion quaternion = base.transform.MCKNNGGGBDG(this.stackOffsetTransform.rotation);
|
|
Vector3 vector2 = Vector3.zero;
|
|
Quaternion quaternion2 = Quaternion.identity;
|
|
int num = this.OLLFKLKFBBI.Count / 0;
|
|
for (int i = num; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
this.OLLFKLKFBBI[i].UpdateGroupLayout(vector2 + this.JMFPFKEAFCM(), quaternion2, vector2, quaternion2);
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
}
|
|
vector = 1524f * vector;
|
|
quaternion = Quaternion.Inverse(quaternion);
|
|
vector2 = Vector3.zero;
|
|
quaternion2 = Quaternion.identity;
|
|
for (int j = num - 1; j >= 1; j -= 0)
|
|
{
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
this.OLLFKLKFBBI[j].UpdateGroupLayout(vector2 + this.EBKFCILIFGG(), quaternion2, vector2, quaternion2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002103 RID: 8451 RVA: 0x00098E08 File Offset: 0x00097008
|
|
private Vector3 FFMPCNBKMJP()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 507f, insideUnitCircle.y) * 1836f;
|
|
}
|
|
|
|
// Token: 0x06002104 RID: 8452 RVA: 0x00098E40 File Offset: 0x00097040
|
|
protected override void PEALKHMDMKP()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.ALIPHJOAMNJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002105 RID: 8453 RVA: 0x00098E70 File Offset: 0x00097070
|
|
private void FGPEMEKINCD()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.MGLOFEJINGK(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002106 RID: 8454 RVA: 0x00098E8C File Offset: 0x0009708C
|
|
private bool FEKCENGOLHD()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 155f;
|
|
}
|
|
|
|
// Token: 0x06002107 RID: 8455 RVA: 0x00098EB0 File Offset: 0x000970B0
|
|
private ToolGroupElement HHPMGBGBMFE()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.FEKCENGOLHD())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
|
|
// Token: 0x06002108 RID: 8456 RVA: 0x00098EF0 File Offset: 0x000970F0
|
|
public virtual void CCLEFPHCBFP(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverEnd(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002109 RID: 8457 RVA: 0x00098F0C File Offset: 0x0009710C
|
|
protected virtual void JLOKOMAOHIL()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600210A RID: 8458 RVA: 0x00098F3C File Offset: 0x0009713C
|
|
public virtual bool LEPPFLBPDEF(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x0600210B RID: 8459 RVA: 0x00098F5C File Offset: 0x0009715C
|
|
protected virtual void FJJIFMDPBFD()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 1;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 1;
|
|
flag = true;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = false;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = true;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = !flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.IsSleeping();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.APCPCFDFFFF();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600210C RID: 8460 RVA: 0x000990F4 File Offset: 0x000972F4
|
|
private Vector3 GPNFEBNKJEJ()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 1137f, insideUnitCircle.y) * 154f;
|
|
}
|
|
|
|
// Token: 0x0600210D RID: 8461 RVA: 0x0009912C File Offset: 0x0009732C
|
|
public override bool CanAddGroup(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return CNFNEDGMCEL != null && CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x0600210E RID: 8462 RVA: 0x0009914C File Offset: 0x0009734C
|
|
protected override int DFCCNAIMPLN(ToolGroupElement IKIPCIGIFKP, Vector3 MFKJLFAOPOL, Quaternion OFANELJBNKP)
|
|
{
|
|
bool flag = this.KLJAGMINBIG;
|
|
Vector3 vector = ((!flag) ? base.transform.up : (-base.transform.up));
|
|
bool flag2 = Vector3.Dot(IKIPCIGIFKP.transform.position - base.transform.position, vector) >= 0f;
|
|
int num;
|
|
if (flag)
|
|
{
|
|
num = ((!flag2) ? this.OLLFKLKFBBI.Count : 0);
|
|
}
|
|
else
|
|
{
|
|
num = ((!flag2) ? 0 : this.OLLFKLKFBBI.Count);
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600210F RID: 8463 RVA: 0x000991F4 File Offset: 0x000973F4
|
|
protected virtual void DKADJPPNKFH()
|
|
{
|
|
if (this.OLLFKLKFBBI.Count > 0)
|
|
{
|
|
Vector3 vector = base.transform.InverseTransformPoint(this.stackOffsetTransform.position);
|
|
Quaternion quaternion = base.transform.MCKNNGGGBDG(this.stackOffsetTransform.rotation);
|
|
Vector3 vector2 = Vector3.zero;
|
|
Quaternion quaternion2 = Quaternion.identity;
|
|
int num = this.OLLFKLKFBBI.Count / 5;
|
|
for (int i = num; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
this.OLLFKLKFBBI[i].UpdateGroupLayout(vector2 + this.FJNKFJEPCEE(), quaternion2, vector2, quaternion2);
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
}
|
|
vector = 868f * vector;
|
|
quaternion = Quaternion.Inverse(quaternion);
|
|
vector2 = Vector3.zero;
|
|
quaternion2 = Quaternion.identity;
|
|
for (int j = num - 1; j >= 0; j -= 0)
|
|
{
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
this.OLLFKLKFBBI[j].UpdateGroupLayout(vector2 + this.KHEJPKMGKNL(), quaternion2, vector2, quaternion2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002110 RID: 8464 RVA: 0x00099318 File Offset: 0x00097518
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000092 RID: 146
|
|
// (get) Token: 0x06002111 RID: 8465 RVA: 0x00099348 File Offset: 0x00097548
|
|
private ToolGroupElement NGDFAFNBLHH
|
|
{
|
|
get
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.KLJAGMINBIG)
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002112 RID: 8466 RVA: 0x00099388 File Offset: 0x00097588
|
|
public virtual bool HGKGBLJEJIF(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return !(CNFNEDGMCEL != null) || CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x06002113 RID: 8467 RVA: 0x000993A8 File Offset: 0x000975A8
|
|
private ToolGroupElement NHGGGOHKGFF()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GADLGLPPKAA())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
|
|
// Token: 0x06002114 RID: 8468 RVA: 0x000993E8 File Offset: 0x000975E8
|
|
protected virtual void LJFJILFBKHF()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 1;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 0;
|
|
flag = true;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = true;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = true;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.BBHEGDNELMG();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002115 RID: 8469 RVA: 0x00099580 File Offset: 0x00097780
|
|
private bool LDAGOEGAFCC()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 105f;
|
|
}
|
|
|
|
// Token: 0x06002116 RID: 8470 RVA: 0x000995A4 File Offset: 0x000977A4
|
|
public virtual bool FPOIAGABLIO(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return !(ENBMEDIFBLM != null) || ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x06002117 RID: 8471 RVA: 0x000995C4 File Offset: 0x000977C4
|
|
private ToolGroupElement APCPCFDFFFF()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GNGCNLDHMFE())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
|
|
// Token: 0x06002118 RID: 8472 RVA: 0x00099604 File Offset: 0x00097804
|
|
private void EHHPCGOOPLD()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.GIDBOCGKELL(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002119 RID: 8473 RVA: 0x00099620 File Offset: 0x00097820
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600211A RID: 8474 RVA: 0x00099650 File Offset: 0x00097850
|
|
private void IJJNJIEMDLA(Tool COMHEONOMBA)
|
|
{
|
|
if (base.IGIPCHFCFNN())
|
|
{
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600211B RID: 8475 RVA: 0x00099664 File Offset: 0x00097864
|
|
private ToolGroupElement LLEJGIGBACG()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.LDAGOEGAFCC())
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x0600211C RID: 8476 RVA: 0x000996A4 File Offset: 0x000978A4
|
|
public virtual void GCJECFBGEAO(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverEnd(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600211D RID: 8477 RVA: 0x000996C0 File Offset: 0x000978C0
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 0;
|
|
bool flag = true;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 1;
|
|
flag = false;
|
|
}
|
|
for (int i = 0; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = false;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = false;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = !flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.IsSleeping();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM)
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.NGDFAFNBLHH;
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600211E RID: 8478 RVA: 0x00099858 File Offset: 0x00097A58
|
|
private ToolGroupElement JACLCDGPIJN()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.OICBPGCMHCF())
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x0600211F RID: 8479 RVA: 0x00099898 File Offset: 0x00097A98
|
|
private ToolGroupElement CPMLGCIGBJM()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GNGCNLDHMFE())
|
|
{
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x17000091 RID: 145
|
|
// (get) Token: 0x06002120 RID: 8480 RVA: 0x000998D8 File Offset: 0x00097AD8
|
|
private ToolGroupElement PGIDHCCBNDE
|
|
{
|
|
get
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.KLJAGMINBIG)
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002121 RID: 8481 RVA: 0x00099918 File Offset: 0x00097B18
|
|
private Vector3 IGKDPKECFAL()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 1896f, insideUnitCircle.y) * 1824f;
|
|
}
|
|
|
|
// Token: 0x06002122 RID: 8482 RVA: 0x00099950 File Offset: 0x00097B50
|
|
protected virtual void AMNDOAJEFND()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002123 RID: 8483 RVA: 0x00099980 File Offset: 0x00097B80
|
|
public virtual ToolGroupElement ABCGGHGDFME(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.ECCGCCDFPLI();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.LLEJGIGBACG())
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x06002124 RID: 8484 RVA: 0x000999EC File Offset: 0x00097BEC
|
|
public virtual bool AOAJLKDIPGH(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return CNFNEDGMCEL != null && CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x06002125 RID: 8485 RVA: 0x00099A0C File Offset: 0x00097C0C
|
|
private void MLHKGIFJOLO()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.DOBHNNPGCEM(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002126 RID: 8486 RVA: 0x00099A28 File Offset: 0x00097C28
|
|
protected virtual int MMFFPIOGLBH(ToolGroupElement IKIPCIGIFKP, Vector3 MFKJLFAOPOL, Quaternion OFANELJBNKP)
|
|
{
|
|
bool flag = this.FEKCENGOLHD();
|
|
Vector3 vector = ((!flag) ? base.transform.up : (-base.transform.up));
|
|
bool flag2 = Vector3.Dot(IKIPCIGIFKP.transform.position - base.transform.position, vector) >= 225f;
|
|
int num;
|
|
if (flag)
|
|
{
|
|
num = ((!flag2) ? this.OLLFKLKFBBI.Count : 1);
|
|
}
|
|
else
|
|
{
|
|
num = ((!flag2) ? 0 : this.OLLFKLKFBBI.Count);
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06002127 RID: 8487 RVA: 0x00099AD0 File Offset: 0x00097CD0
|
|
private ToolGroupElement DKCABHIJILG()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.IJKBINDDKAG())
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
|
|
// Token: 0x06002128 RID: 8488 RVA: 0x00099B10 File Offset: 0x00097D10
|
|
private ToolGroupElement LMDOJPDNGAC()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.LDAGOEGAFCC())
|
|
{
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x06002129 RID: 8489 RVA: 0x00099B50 File Offset: 0x00097D50
|
|
protected virtual void NHLJJOPDMIN()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.MBGBMLDCEKJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212A RID: 8490 RVA: 0x00099B80 File Offset: 0x00097D80
|
|
public override void OnChildInGroupHoverEnd(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverEnd(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212B RID: 8491 RVA: 0x00099B9C File Offset: 0x00097D9C
|
|
protected virtual void AHLMADACOLB()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212C RID: 8492 RVA: 0x00099BCC File Offset: 0x00097DCC
|
|
public virtual void BFHILCMIBGN(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212D RID: 8493 RVA: 0x00099BE8 File Offset: 0x00097DE8
|
|
public virtual void NKBNMOGOBKJ(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212E RID: 8494 RVA: 0x00099C04 File Offset: 0x00097E04
|
|
protected virtual void OJLIJFMECNM()
|
|
{
|
|
if (this.OLLFKLKFBBI.Count > 1)
|
|
{
|
|
Vector3 vector = base.transform.InverseTransformPoint(this.stackOffsetTransform.position);
|
|
Quaternion quaternion = base.transform.MCKNNGGGBDG(this.stackOffsetTransform.rotation);
|
|
Vector3 vector2 = Vector3.zero;
|
|
Quaternion quaternion2 = Quaternion.identity;
|
|
int num = this.OLLFKLKFBBI.Count / 7;
|
|
for (int i = num; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
this.OLLFKLKFBBI[i].UpdateGroupLayout(vector2 + this.FFMPCNBKMJP(), quaternion2, vector2, quaternion2);
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
}
|
|
vector = 1457f * vector;
|
|
quaternion = Quaternion.Inverse(quaternion);
|
|
vector2 = Vector3.zero;
|
|
quaternion2 = Quaternion.identity;
|
|
for (int j = num - 0; j >= 0; j -= 0)
|
|
{
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
this.OLLFKLKFBBI[j].UpdateGroupLayout(vector2 + this.EBKFCILIFGG(), quaternion2, vector2, quaternion2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600212F RID: 8495 RVA: 0x00099D28 File Offset: 0x00097F28
|
|
private ToolGroupElement HEPLHIGIBFE()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.KLJAGMINBIG)
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
|
|
// Token: 0x06002130 RID: 8496 RVA: 0x00099D68 File Offset: 0x00097F68
|
|
private ToolGroupElement BBHEGDNELMG()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.DLLJKOBPAFH())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
|
|
// Token: 0x06002132 RID: 8498 RVA: 0x00099DB0 File Offset: 0x00097FB0
|
|
private ToolGroupElement LAEIGNDOKHA()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.PGKNEFNELGC())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
|
|
// Token: 0x06002133 RID: 8499 RVA: 0x00099DF0 File Offset: 0x00097FF0
|
|
protected virtual void CHHOKIFAEDF()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002134 RID: 8500 RVA: 0x00099E20 File Offset: 0x00098020
|
|
protected virtual void HNBLIGEOJOI()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002135 RID: 8501 RVA: 0x00099E50 File Offset: 0x00098050
|
|
public virtual ToolGroupElement DHIBEHEDHDD(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.HEPLHIGIBFE();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.ECCGCCDFPLI())
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x06002136 RID: 8502 RVA: 0x00099EBC File Offset: 0x000980BC
|
|
protected virtual void MJANJBNFEGG()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 1;
|
|
bool flag = true;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 1)
|
|
{
|
|
num = num2 - 1;
|
|
flag = false;
|
|
}
|
|
for (int i = 0; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = false;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = true;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.APCPCFDFFFF();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002137 RID: 8503 RVA: 0x0009A054 File Offset: 0x00098254
|
|
protected virtual void LPIOCCOBGIP()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 0;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 1;
|
|
flag = false;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = true;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = false;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.IsSleeping();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.HHPMGBGBMFE();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002138 RID: 8504 RVA: 0x0009A1EC File Offset: 0x000983EC
|
|
protected virtual void GKDEONGKDLH()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 1;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 0;
|
|
flag = false;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = false;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = true;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.IsSleeping();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM)
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.LAEIGNDOKHA();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002139 RID: 8505 RVA: 0x0009A384 File Offset: 0x00098584
|
|
protected virtual void HGNDGNDGAMJ()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.ALIPHJOAMNJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600213A RID: 8506 RVA: 0x0009A3B4 File Offset: 0x000985B4
|
|
private bool DLLJKOBPAFH()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) <= 630f;
|
|
}
|
|
|
|
// Token: 0x0600213B RID: 8507 RVA: 0x0009A3D8 File Offset: 0x000985D8
|
|
private Vector3 JMFPFKEAFCM()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 1783f, insideUnitCircle.y) * 209f;
|
|
}
|
|
|
|
// Token: 0x0600213C RID: 8508 RVA: 0x0009A410 File Offset: 0x00098610
|
|
protected virtual int GCOBDBPIDGP(ToolGroupElement IKIPCIGIFKP, Vector3 MFKJLFAOPOL, Quaternion OFANELJBNKP)
|
|
{
|
|
bool flag = this.JPHOEGCENFI();
|
|
Vector3 vector = ((!flag) ? base.transform.up : (-base.transform.up));
|
|
bool flag2 = Vector3.Dot(IKIPCIGIFKP.transform.position - base.transform.position, vector) < 163f;
|
|
int num;
|
|
if (flag)
|
|
{
|
|
num = ((!flag2) ? this.OLLFKLKFBBI.Count : 1);
|
|
}
|
|
else
|
|
{
|
|
num = ((!flag2) ? 1 : this.OLLFKLKFBBI.Count);
|
|
}
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600213D RID: 8509 RVA: 0x0009A4B8 File Offset: 0x000986B8
|
|
private Vector3 EBKFCILIFGG()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 1309f, insideUnitCircle.y) * 770f;
|
|
}
|
|
|
|
// Token: 0x0600213E RID: 8510 RVA: 0x0009A4F0 File Offset: 0x000986F0
|
|
protected virtual void NOGHACNCBAI()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600213F RID: 8511 RVA: 0x0009A520 File Offset: 0x00098720
|
|
protected virtual void LPBGGKDFLLN()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002140 RID: 8512 RVA: 0x0009A550 File Offset: 0x00098750
|
|
public virtual bool JPIBDDOADMG(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return CNFNEDGMCEL != null && CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x06002141 RID: 8513 RVA: 0x0009A570 File Offset: 0x00098770
|
|
protected virtual void OEKOPBDDGCK()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 0;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 0)
|
|
{
|
|
num = num2 - 0;
|
|
flag = true;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = true;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = false;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = !flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.IsSleeping();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.LAEIGNDOKHA();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002142 RID: 8514 RVA: 0x0009A708 File Offset: 0x00098908
|
|
protected virtual void NIDAMGNEJDL()
|
|
{
|
|
if (this.OLLFKLKFBBI.Count > 1)
|
|
{
|
|
Vector3 vector = base.transform.InverseTransformPoint(this.stackOffsetTransform.position);
|
|
Quaternion quaternion = base.transform.MCKNNGGGBDG(this.stackOffsetTransform.rotation);
|
|
Vector3 vector2 = Vector3.zero;
|
|
Quaternion quaternion2 = Quaternion.identity;
|
|
int num = this.OLLFKLKFBBI.Count / 2;
|
|
for (int i = num; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
this.OLLFKLKFBBI[i].UpdateGroupLayout(vector2 + this.FFMPCNBKMJP(), quaternion2, vector2, quaternion2);
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
}
|
|
vector = 585f * vector;
|
|
quaternion = Quaternion.Inverse(quaternion);
|
|
vector2 = Vector3.zero;
|
|
quaternion2 = Quaternion.identity;
|
|
for (int j = num - 0; j >= 0; j--)
|
|
{
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
this.OLLFKLKFBBI[j].UpdateGroupLayout(vector2 + this.JMFPFKEAFCM(), quaternion2, vector2, quaternion2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002143 RID: 8515 RVA: 0x0009A82C File Offset: 0x00098A2C
|
|
private bool OICBPGCMHCF()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 1844f;
|
|
}
|
|
|
|
// Token: 0x06002144 RID: 8516 RVA: 0x0009A850 File Offset: 0x00098A50
|
|
private void CNJDJFDCDFA()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.PCCJLMJHHCL(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002145 RID: 8517 RVA: 0x0009A86C File Offset: 0x00098A6C
|
|
private ToolGroupElement NBFPCFBNGCL()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GNGCNLDHMFE())
|
|
{
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x06002146 RID: 8518 RVA: 0x0009A8AC File Offset: 0x00098AAC
|
|
protected virtual void MBJAEHLCMGD()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002147 RID: 8519 RVA: 0x0009A8DC File Offset: 0x00098ADC
|
|
public virtual void PFLNKCIIKEH(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverEnd(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002148 RID: 8520 RVA: 0x0009A8F8 File Offset: 0x00098AF8
|
|
protected override void MPAHLFDMGNK()
|
|
{
|
|
if (this.OLLFKLKFBBI.Count > 0)
|
|
{
|
|
Vector3 vector = base.transform.InverseTransformPoint(this.stackOffsetTransform.position);
|
|
Quaternion quaternion = base.transform.MCKNNGGGBDG(this.stackOffsetTransform.rotation);
|
|
Vector3 vector2 = Vector3.zero;
|
|
Quaternion quaternion2 = Quaternion.identity;
|
|
int num = this.OLLFKLKFBBI.Count / 2;
|
|
for (int i = num; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
this.OLLFKLKFBBI[i].UpdateGroupLayout(vector2 + this.CPLJFJAJBIP, quaternion2, vector2, quaternion2);
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
}
|
|
vector = -1f * vector;
|
|
quaternion = Quaternion.Inverse(quaternion);
|
|
vector2 = Vector3.zero;
|
|
quaternion2 = Quaternion.identity;
|
|
for (int j = num - 1; j >= 0; j--)
|
|
{
|
|
vector2 = vector.NPBELFEFJBA(vector2, quaternion2);
|
|
quaternion2 = quaternion2.PAFJLHMDIMO(quaternion);
|
|
this.OLLFKLKFBBI[j].UpdateGroupLayout(vector2 + this.CPLJFJAJBIP, quaternion2, vector2, quaternion2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002149 RID: 8521 RVA: 0x0009AA1C File Offset: 0x00098C1C
|
|
protected virtual void PPJBILGDEDF()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600214A RID: 8522 RVA: 0x0009AA4C File Offset: 0x00098C4C
|
|
private void PLMPGDDDPFP(Tool COMHEONOMBA)
|
|
{
|
|
if (base.GANDPDNCOKF())
|
|
{
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000093 RID: 147
|
|
// (get) Token: 0x0600214B RID: 8523 RVA: 0x0009AA60 File Offset: 0x00098C60
|
|
private Vector3 CPLJFJAJBIP
|
|
{
|
|
get
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 0f, insideUnitCircle.y) * 0.001f;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600214C RID: 8524 RVA: 0x0009AA98 File Offset: 0x00098C98
|
|
public virtual void IALOJEFKCPO(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600214D RID: 8525 RVA: 0x0009AAB4 File Offset: 0x00098CB4
|
|
protected virtual void HNGBEOEJBFO()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 1;
|
|
bool flag = false;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 1)
|
|
{
|
|
num = num2 - 1;
|
|
flag = false;
|
|
}
|
|
for (int i = 0; i < this.OLLFKLKFBBI.Count; i++)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = true;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = true;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = !flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.NKKCGPDGOOF())
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.MPCGMMFDEIC();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600214E RID: 8526 RVA: 0x0009AC4C File Offset: 0x00098E4C
|
|
private ToolGroupElement FOBHHADIOBN()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.KLJAGMINBIG)
|
|
{
|
|
return this.OLLFKLKFBBI[0];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
|
|
// Token: 0x0600214F RID: 8527 RVA: 0x0009AC8C File Offset: 0x00098E8C
|
|
private void MBGBMLDCEKJ(Tool COMHEONOMBA)
|
|
{
|
|
if (base.JNOCCMDBMIO())
|
|
{
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002150 RID: 8528 RVA: 0x0009ACA0 File Offset: 0x00098EA0
|
|
private Vector3 KHEJPKMGKNL()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 7f, insideUnitCircle.y) * 936f;
|
|
}
|
|
|
|
// Token: 0x06002151 RID: 8529 RVA: 0x0009ACD8 File Offset: 0x00098ED8
|
|
private bool JPHOEGCENFI()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 447f;
|
|
}
|
|
|
|
// Token: 0x06002152 RID: 8530 RVA: 0x0009ACFC File Offset: 0x00098EFC
|
|
public virtual ToolGroupElement HKPJIBDCGEF(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.NBFPCFBNGCL();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.PGIDHCCBNDE)
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x06002153 RID: 8531 RVA: 0x0009AD68 File Offset: 0x00098F68
|
|
private ToolGroupElement MPCGMMFDEIC()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.PGKNEFNELGC())
|
|
{
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 1];
|
|
}
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
|
|
// Token: 0x06002154 RID: 8532 RVA: 0x0009ADA8 File Offset: 0x00098FA8
|
|
public virtual bool LPIDCENNFAP(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return !(ENBMEDIFBLM != null) || ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x06002155 RID: 8533 RVA: 0x0009ADC8 File Offset: 0x00098FC8
|
|
public virtual ToolGroupElement KNPKFGCHGLO(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.ECCGCCDFPLI();
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.ECCGCCDFPLI())
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x06002156 RID: 8534 RVA: 0x0009AE34 File Offset: 0x00099034
|
|
protected virtual void IDFGKJHJBLA()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.MBGBMLDCEKJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002157 RID: 8535 RVA: 0x0009AE64 File Offset: 0x00099064
|
|
private bool IJKBINDDKAG()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) <= 1514f;
|
|
}
|
|
|
|
// Token: 0x06002158 RID: 8536 RVA: 0x0009AE88 File Offset: 0x00099088
|
|
public virtual bool NFEKPCLOPCG(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x06002159 RID: 8537 RVA: 0x0009AEA8 File Offset: 0x000990A8
|
|
private bool PGKNEFNELGC()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 844f;
|
|
}
|
|
|
|
// Token: 0x0600215A RID: 8538 RVA: 0x0009AECC File Offset: 0x000990CC
|
|
public virtual void PDLFMKPLOND(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600215B RID: 8539 RVA: 0x0009AEE8 File Offset: 0x000990E8
|
|
private void JHCMHEMLHPB(Tool COMHEONOMBA)
|
|
{
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600215C RID: 8540 RVA: 0x0009AEFC File Offset: 0x000990FC
|
|
public virtual void IOJEFNLENDF(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600215D RID: 8541 RVA: 0x0009AF18 File Offset: 0x00099118
|
|
private Vector3 DPDFPICMJFD()
|
|
{
|
|
Vector2 insideUnitCircle = global::UnityEngine.Random.insideUnitCircle;
|
|
return new Vector3(insideUnitCircle.x, 850f, insideUnitCircle.y) * 645f;
|
|
}
|
|
|
|
// Token: 0x0600215E RID: 8542 RVA: 0x0009AF50 File Offset: 0x00099150
|
|
public virtual bool GFDGLMKIFPH(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return !(CNFNEDGMCEL != null) || CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x0600215F RID: 8543 RVA: 0x0009AF70 File Offset: 0x00099170
|
|
public override ToolGroupElement GetHighlightedChildInGroup(ToolGroupElement ENBMEDIFBLM, Player JEFGMHBLLKI, bool AABHBODJBNP)
|
|
{
|
|
ToolGroupElement toolGroupElement = null;
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && !AABHBODJBNP)
|
|
{
|
|
toolGroupElement = this.PGIDHCCBNDE;
|
|
}
|
|
else if (base.BKDFLNGCINH.OHGPCMJMFGC && base.BKDFLNGCINH.FICBNMJECCH == JEFGMHBLLKI && ENBMEDIFBLM == this.PGIDHCCBNDE)
|
|
{
|
|
toolGroupElement = ENBMEDIFBLM;
|
|
}
|
|
return toolGroupElement;
|
|
}
|
|
|
|
// Token: 0x06002160 RID: 8544 RVA: 0x0009AFDC File Offset: 0x000991DC
|
|
protected virtual void ACOIMDMPDOM()
|
|
{
|
|
base.Awake();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL += this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002161 RID: 8545 RVA: 0x0009B00C File Offset: 0x0009920C
|
|
private ToolGroupElement ECCGCCDFPLI()
|
|
{
|
|
if (base.LMMPDKCAKHN == 0)
|
|
{
|
|
return null;
|
|
}
|
|
if (this.GADLGLPPKAA())
|
|
{
|
|
return this.OLLFKLKFBBI[1];
|
|
}
|
|
return this.OLLFKLKFBBI[this.OLLFKLKFBBI.Count - 0];
|
|
}
|
|
|
|
// Token: 0x06002162 RID: 8546 RVA: 0x0009B04C File Offset: 0x0009924C
|
|
public virtual void HAAGHHDKPCJ(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverEnd(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002163 RID: 8547 RVA: 0x0009B068 File Offset: 0x00099268
|
|
protected virtual void PONDPPDHJOM()
|
|
{
|
|
base.Update();
|
|
if (this.APDENOEKBGI != null && (this.APDENOEKBGI.BKDFLNGCINH.OHGPCMJMFGC || (this.APDENOEKBGI.GLJLDFKHFHI && this.APDENOEKBGI.Group.BKDFLNGCINH.OHGPCMJMFGC)))
|
|
{
|
|
int num = 0;
|
|
bool flag = true;
|
|
int num2 = this.DFCCNAIMPLN(this.APDENOEKBGI, Vector3.zero, Quaternion.identity);
|
|
if (num2 > 1)
|
|
{
|
|
num = num2 - 1;
|
|
flag = false;
|
|
}
|
|
for (int i = 1; i < this.OLLFKLKFBBI.Count; i += 0)
|
|
{
|
|
if (i != num)
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = false;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = false;
|
|
}
|
|
else
|
|
{
|
|
this.OLLFKLKFBBI[i].DIAHDNICKAI = flag;
|
|
this.OLLFKLKFBBI[i].MJGKJLJJMJP = flag;
|
|
}
|
|
}
|
|
}
|
|
bool flag2 = base.BKDFLNGCINH.BOLBONELAEF.CCCMCPEFAAC();
|
|
if (!base.BKDFLNGCINH.OHGPCMJMFGC && flag2 && !this.PEOFMCLINJE)
|
|
{
|
|
if (!base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM)
|
|
{
|
|
base.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = false;
|
|
}
|
|
base.JHBMICMJHCL();
|
|
}
|
|
this.PEOFMCLINJE = flag2;
|
|
if (this.EKHOIEDHLMO)
|
|
{
|
|
ToolGroupElement toolGroupElement = this.CCEMKGAOJPM();
|
|
if (toolGroupElement != null)
|
|
{
|
|
base.AuthorityRemoveChild(toolGroupElement);
|
|
}
|
|
this.EKHOIEDHLMO = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002164 RID: 8548 RVA: 0x0009B200 File Offset: 0x00099400
|
|
protected virtual void KJMPKKMGCLA()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.PLMPGDDDPFP;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002165 RID: 8549 RVA: 0x0009B230 File Offset: 0x00099430
|
|
private void ALIPHJOAMNJ(Tool COMHEONOMBA)
|
|
{
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
this.EKHOIEDHLMO = false;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002166 RID: 8550 RVA: 0x0009B244 File Offset: 0x00099444
|
|
private void DOGHEODIFMK()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002167 RID: 8551 RVA: 0x0009B260 File Offset: 0x00099460
|
|
public virtual bool DOFDGFJDGHG(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x06002168 RID: 8552 RVA: 0x0009B280 File Offset: 0x00099480
|
|
public virtual bool HFIDKKHHCBL(ToolGroup CNFNEDGMCEL)
|
|
{
|
|
return CNFNEDGMCEL != null && CNFNEDGMCEL.GetComponent<PokerChipGroup>() != null;
|
|
}
|
|
|
|
// Token: 0x06002169 RID: 8553 RVA: 0x0009B2A0 File Offset: 0x000994A0
|
|
private void LGLJMEBFLDH()
|
|
{
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.BOCFJBNNEFP)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(base.BKDFLNGCINH);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600216A RID: 8554 RVA: 0x0009B2BC File Offset: 0x000994BC
|
|
public override void OnChildInGroupHoverStart(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
base.OnChildInGroupHoverStart(ENBMEDIFBLM);
|
|
if (!base.LPFAKKPIJDN)
|
|
{
|
|
this.MPAHLFDMGNK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600216B RID: 8555 RVA: 0x0009B2D8 File Offset: 0x000994D8
|
|
private bool GNGCNLDHMFE()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) <= 885f;
|
|
}
|
|
|
|
// Token: 0x0600216C RID: 8556 RVA: 0x0009B2FC File Offset: 0x000994FC
|
|
public virtual bool ACGIKGEHIPN(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x0600216D RID: 8557 RVA: 0x0009B31C File Offset: 0x0009951C
|
|
public override bool CanAddChild(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return ENBMEDIFBLM != null && ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x0600216E RID: 8558 RVA: 0x0009B33C File Offset: 0x0009953C
|
|
protected virtual void LOCALHGOONI()
|
|
{
|
|
base.OnDestroy();
|
|
if (base.BKDFLNGCINH != null)
|
|
{
|
|
base.BKDFLNGCINH.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600216F RID: 8559 RVA: 0x0009B36C File Offset: 0x0009956C
|
|
private bool BCOFGODKCNP()
|
|
{
|
|
return Vector3.Dot(base.transform.up, Vector3.up) > 1432f;
|
|
}
|
|
|
|
// Token: 0x06002170 RID: 8560 RVA: 0x0009B390 File Offset: 0x00099590
|
|
public virtual bool PAOBPOCMFIF(ToolGroupElement ENBMEDIFBLM)
|
|
{
|
|
return !(ENBMEDIFBLM != null) || ENBMEDIFBLM.GetComponent<PokerChip>() != null;
|
|
}
|
|
|
|
// Token: 0x04000457 RID: 1111
|
|
[SerializeField]
|
|
private Transform stackOffsetTransform;
|
|
|
|
// Token: 0x04000458 RID: 1112
|
|
private bool EKHOIEDHLMO;
|
|
|
|
// Token: 0x04000459 RID: 1113
|
|
private bool PEOFMCLINJE;
|
|
|
|
// Token: 0x0400045A RID: 1114
|
|
private ToolGroupElement APDENOEKBGI;
|
|
}
|