1298 lines
37 KiB
C#
1298 lines
37 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
// Token: 0x0200004D RID: 77
|
|
public class DiscGolfPowerUp : LegacyPowerup
|
|
{
|
|
// Token: 0x0600105E RID: 4190 RVA: 0x0005669C File Offset: 0x0005489C
|
|
public APOBGICDCJD JPNPHEFKIBA()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x0600105F RID: 4191 RVA: 0x000566A4 File Offset: 0x000548A4
|
|
public void LDKJLHNLLEA(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001060 RID: 4192 RVA: 0x000566C4 File Offset: 0x000548C4
|
|
private void BLNDPCHMPHH(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.OPACLNEFBAA() && discGolfDisc != null && discGolfDisc.GMLINBOCIBJ() != null && discGolfDisc.GMLINBOCIBJ().IPFPJCPGENH && this.ICKJFPHAMIE() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF;
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.KHMHBFPEDHK.JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001061 RID: 4193 RVA: 0x00056768 File Offset: 0x00054968
|
|
public void LMBODPNGIEP(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001062 RID: 4194 RVA: 0x00056788 File Offset: 0x00054988
|
|
protected virtual void BOPLFCBMKEL()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.LPNAGANGFIH));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.KPBMGMJKLHN()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001063 RID: 4195 RVA: 0x00056804 File Offset: 0x00054A04
|
|
protected virtual void PGKABCFBFLL()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001064 RID: 4196 RVA: 0x00056830 File Offset: 0x00054A30
|
|
protected virtual void LDHGOLHGDHF()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.KBEPMEKCCNF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001065 RID: 4197 RVA: 0x0005685C File Offset: 0x00054A5C
|
|
protected virtual void LNKPKHFACHE()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.BLNDPCHMPHH;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.FINIDBNJANF()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001066 RID: 4198 RVA: 0x000568D8 File Offset: 0x00054AD8
|
|
public void IOJICOPFOMD(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001067 RID: 4199 RVA: 0x000568F8 File Offset: 0x00054AF8
|
|
protected virtual void LHDCMFKBGNP()
|
|
{
|
|
base.DCGCFFFPABH();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.OnTriggerEnter));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001068 RID: 4200 RVA: 0x00056928 File Offset: 0x00054B28
|
|
private void LPNAGANGFIH(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.KBEPMEKCCNF() && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.GMLINBOCIBJ().IPFPJCPGENH && this.DLDEAKMCNMI() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.PPACPENBHKF();
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.GMLINBOCIBJ().JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001069 RID: 4201 RVA: 0x000569CC File Offset: 0x00054BCC
|
|
protected virtual void PIOMEALGALM()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.KBEPMEKCCNF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600106A RID: 4202 RVA: 0x000569F8 File Offset: 0x00054BF8
|
|
public int LJDENGDKCLA()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x0600106B RID: 4203 RVA: 0x00056A00 File Offset: 0x00054C00
|
|
protected virtual void CIOJPNPHOLD()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600106C RID: 4204 RVA: 0x00056A2C File Offset: 0x00054C2C
|
|
protected virtual void BOOMNFIGOAN()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.BLNDPCHMPHH));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LJDENGDKCLA()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600106D RID: 4205 RVA: 0x00056AA8 File Offset: 0x00054CA8
|
|
protected virtual void EEFJBLAIGBP()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.LPNAGANGFIH;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.HFBHPFHAILN()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600106E RID: 4206 RVA: 0x00056B24 File Offset: 0x00054D24
|
|
public void NHAJCJKJKAN(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0600106F RID: 4207 RVA: 0x00056B44 File Offset: 0x00054D44
|
|
protected virtual void CIKADMKGJLK()
|
|
{
|
|
base.NDHBFLHIAHM();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.FLLJPHHAIMG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001070 RID: 4208 RVA: 0x00056B74 File Offset: 0x00054D74
|
|
protected virtual void JKFLOMBCKIL()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.LPNAGANGFIH;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LJDENGDKCLA()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001071 RID: 4209 RVA: 0x00056BF0 File Offset: 0x00054DF0
|
|
protected virtual void NEJLPPFGJPF()
|
|
{
|
|
base.ILNOFPMNPKH();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.LPNAGANGFIH;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001072 RID: 4210 RVA: 0x00056C20 File Offset: 0x00054E20
|
|
public void ICCHIPLPAAO(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001073 RID: 4211 RVA: 0x00056C40 File Offset: 0x00054E40
|
|
public APOBGICDCJD DGCEPCEIDEC()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x06001074 RID: 4212 RVA: 0x00056C48 File Offset: 0x00054E48
|
|
protected virtual void NAHONMGFHJE()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001075 RID: 4213 RVA: 0x00056C74 File Offset: 0x00054E74
|
|
protected virtual void JNLNGEOIMKG()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.KBEPMEKCCNF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001076 RID: 4214 RVA: 0x00056CA0 File Offset: 0x00054EA0
|
|
public int HFBHPFHAILN()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x06001077 RID: 4215 RVA: 0x00056CA8 File Offset: 0x00054EA8
|
|
public void OOBCABGOMFO()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.AONJILIKFOI(base.transform.position, quaternion, false);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001078 RID: 4216 RVA: 0x00056D60 File Offset: 0x00054F60
|
|
public bool JCPBHJCECNK()
|
|
{
|
|
return !this.visualRoot.gameObject.activeInHierarchy || this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x06001079 RID: 4217 RVA: 0x00056D88 File Offset: 0x00054F88
|
|
public int EBEEILBOBJI()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x0600107A RID: 4218 RVA: 0x00056D90 File Offset: 0x00054F90
|
|
public bool LPLBFBLDCKD()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x0600107B RID: 4219 RVA: 0x00056DB8 File Offset: 0x00054FB8
|
|
public int PAEJDIOIDIM()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x0600107C RID: 4220 RVA: 0x00056DC0 File Offset: 0x00054FC0
|
|
protected virtual void KGLPNFCNKLF()
|
|
{
|
|
base.HABFGMOIDCO();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.LPNAGANGFIH));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600107D RID: 4221 RVA: 0x00056DF0 File Offset: 0x00054FF0
|
|
public int LAPNJPBHOID()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x0600107E RID: 4222 RVA: 0x00056DF8 File Offset: 0x00054FF8
|
|
protected override void NAJEHIFHFII()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600107F RID: 4223 RVA: 0x00056E24 File Offset: 0x00055024
|
|
private void EDKGKIBOANN(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.OPACLNEFBAA() && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.GMLINBOCIBJ().IPFPJCPGENH && this.GPIPCFAJLKJ() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF;
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.GMLINBOCIBJ().JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001080 RID: 4224 RVA: 0x00056EC8 File Offset: 0x000550C8
|
|
public bool ENIINHJLLPG()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x06001081 RID: 4225 RVA: 0x00056EF0 File Offset: 0x000550F0
|
|
public int KPBMGMJKLHN()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x06001082 RID: 4226 RVA: 0x00056EF8 File Offset: 0x000550F8
|
|
public void JJPGNBLGMEK(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001083 RID: 4227 RVA: 0x00056F18 File Offset: 0x00055118
|
|
public void BGICJPCHBDH()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NFHMLKPHCFF().Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.AONJILIKFOI(base.transform.position, quaternion, false);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004E RID: 78
|
|
// (get) Token: 0x06001084 RID: 4228 RVA: 0x00056FD0 File Offset: 0x000551D0
|
|
public APOBGICDCJD MMHMGHNGLNL
|
|
{
|
|
get
|
|
{
|
|
return this.hole;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001085 RID: 4229 RVA: 0x00056FD8 File Offset: 0x000551D8
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.OnTriggerEnter;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001086 RID: 4230 RVA: 0x00057008 File Offset: 0x00055208
|
|
protected virtual void GLNMHLKOCLF()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001087 RID: 4231 RVA: 0x00057034 File Offset: 0x00055234
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.OnTriggerEnter;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.EKANDABBFHL).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001088 RID: 4232 RVA: 0x000570B0 File Offset: 0x000552B0
|
|
protected virtual void BJGJHPBABDB()
|
|
{
|
|
base.ILNOFPMNPKH();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.NDMLIPIJCIO;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001089 RID: 4233 RVA: 0x000570E0 File Offset: 0x000552E0
|
|
protected virtual void LJAJLFPAGBM()
|
|
{
|
|
base.OnDestroy();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.EDKGKIBOANN;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600108A RID: 4234 RVA: 0x00057110 File Offset: 0x00055310
|
|
public int PCJJAMIMFML()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x0600108C RID: 4236 RVA: 0x0005713C File Offset: 0x0005533C
|
|
public void CDAOHHJDOFM()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.NAPGKLNBMHN(base.transform.position, quaternion, false);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600108D RID: 4237 RVA: 0x000571F4 File Offset: 0x000553F4
|
|
public bool GPIPCFAJLKJ()
|
|
{
|
|
return !this.visualRoot.gameObject.activeInHierarchy || this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x0600108E RID: 4238 RVA: 0x0005721C File Offset: 0x0005541C
|
|
public void NNAOECBDAOP()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.AONJILIKFOI(base.transform.position, quaternion, true);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600108F RID: 4239 RVA: 0x000572D4 File Offset: 0x000554D4
|
|
protected virtual void EIHFKGINHOH()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001090 RID: 4240 RVA: 0x00057300 File Offset: 0x00055500
|
|
public int FINIDBNJANF()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x06001091 RID: 4241 RVA: 0x00057308 File Offset: 0x00055508
|
|
protected virtual void MMPMNKPDOBM()
|
|
{
|
|
base.MMEKGKHJECF();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.LPNAGANGFIH));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001092 RID: 4242 RVA: 0x00057338 File Offset: 0x00055538
|
|
protected virtual void DHAEEPCMCMI()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.BLNDPCHMPHH));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.ADFCGPJIGEE()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001093 RID: 4243 RVA: 0x000573B4 File Offset: 0x000555B4
|
|
public APOBGICDCJD NBNCBIOJHAE()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x06001094 RID: 4244 RVA: 0x000573BC File Offset: 0x000555BC
|
|
public int OKNCEHMFMCN()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x06001095 RID: 4245 RVA: 0x000573C4 File Offset: 0x000555C4
|
|
protected virtual void EDFNINKHDJN()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001096 RID: 4246 RVA: 0x000573F0 File Offset: 0x000555F0
|
|
public APOBGICDCJD FCKODEANMNC()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x06001097 RID: 4247 RVA: 0x000573F8 File Offset: 0x000555F8
|
|
protected virtual void CEDDLAPEMFH()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001098 RID: 4248 RVA: 0x00057424 File Offset: 0x00055624
|
|
public void GAMDHKMICPG(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06001099 RID: 4249 RVA: 0x00057444 File Offset: 0x00055644
|
|
protected virtual void EKBEMBMIJLH()
|
|
{
|
|
base.HABFGMOIDCO();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.OnTriggerEnter));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109A RID: 4250 RVA: 0x00057474 File Offset: 0x00055674
|
|
protected virtual void PAALCGEAEDE()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.EDKGKIBOANN));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LJDENGDKCLA()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109B RID: 4251 RVA: 0x000574F0 File Offset: 0x000556F0
|
|
public void OOACEGCCNBN()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NFHMLKPHCFF().Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.NAPGKLNBMHN(base.transform.position, quaternion, false);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109C RID: 4252 RVA: 0x000575A8 File Offset: 0x000557A8
|
|
protected virtual void IGPFODPCJEP()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.OnTriggerEnter));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LJDENGDKCLA()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109D RID: 4253 RVA: 0x00057624 File Offset: 0x00055824
|
|
protected override void MICFHMAIGIB()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.AGPPPCIACDA));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.HFBHPFHAILN()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600109E RID: 4254 RVA: 0x000576A0 File Offset: 0x000558A0
|
|
public bool FCFDDGMKNMP()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x0600109F RID: 4255 RVA: 0x000576C8 File Offset: 0x000558C8
|
|
private void NDMLIPIJCIO(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.KBEPMEKCCNF() && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.KHMHBFPEDHK.IPFPJCPGENH && this.JCPBHJCECNK() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.IGOFELJMFOF;
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.KHMHBFPEDHK.JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A0 RID: 4256 RVA: 0x0005776C File Offset: 0x0005596C
|
|
public void AFMKKIFOEMO(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010A1 RID: 4257 RVA: 0x0005778C File Offset: 0x0005598C
|
|
public void OnPickup()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.Play(base.transform.position, quaternion, false);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A2 RID: 4258 RVA: 0x00057844 File Offset: 0x00055A44
|
|
public void PLJADNAKOLC(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010A3 RID: 4259 RVA: 0x00057864 File Offset: 0x00055A64
|
|
protected virtual void GJGEACMGLKP()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.AGPPPCIACDA));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.FINIDBNJANF()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A4 RID: 4260 RVA: 0x000578E0 File Offset: 0x00055AE0
|
|
public bool DLDEAKMCNMI()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010A5 RID: 4261 RVA: 0x00057908 File Offset: 0x00055B08
|
|
private void NAEAIHKDLOH(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.ACEACLFJOAA && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.KHMHBFPEDHK.IPFPJCPGENH && this.NKGJJHMDPLI() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.BKDFLNGCINH.BOLBONELAEF.PPACPENBHKF();
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.KHMHBFPEDHK.JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000050 RID: 80
|
|
// (get) Token: 0x060010D8 RID: 4312 RVA: 0x00058470 File Offset: 0x00056670
|
|
// (set) Token: 0x060010A6 RID: 4262 RVA: 0x000579AC File Offset: 0x00055BAC
|
|
public bool ALPDLGGKAMJ
|
|
{
|
|
get
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
set
|
|
{
|
|
this.visualRoot.gameObject.SetActive(value);
|
|
this.scoreAdjustText.enabled = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A7 RID: 4263 RVA: 0x000579CC File Offset: 0x00055BCC
|
|
protected virtual void KLACDMCGOEI()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.MBDGFCACMCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A8 RID: 4264 RVA: 0x000579F8 File Offset: 0x00055BF8
|
|
protected virtual void HIDDBMMABMJ()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.KBEPMEKCCNF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010A9 RID: 4265 RVA: 0x00057A24 File Offset: 0x00055C24
|
|
public void IAMMKIBMOKG()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.Play(base.transform.position, quaternion, true);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010AA RID: 4266 RVA: 0x00057ADC File Offset: 0x00055CDC
|
|
protected virtual void MBJAEHLCMGD()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.AGPPPCIACDA));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.EBEEILBOBJI()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010AB RID: 4267 RVA: 0x00057B58 File Offset: 0x00055D58
|
|
public void LNPPBEEPJOD(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010AC RID: 4268 RVA: 0x00057B78 File Offset: 0x00055D78
|
|
public void MMLHFBCNLFI(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010AD RID: 4269 RVA: 0x00057B98 File Offset: 0x00055D98
|
|
public bool FDNDIOBIJBL()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010AE RID: 4270 RVA: 0x00057BC0 File Offset: 0x00055DC0
|
|
public APOBGICDCJD PMGCFFFBNDL()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x060010AF RID: 4271 RVA: 0x00057BC8 File Offset: 0x00055DC8
|
|
protected virtual void FHNCHPMIBJP()
|
|
{
|
|
base.PJFFNBKMKBI();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.BLNDPCHMPHH;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B0 RID: 4272 RVA: 0x00057BF8 File Offset: 0x00055DF8
|
|
public int IFGBHNHMFOD()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x060010B1 RID: 4273 RVA: 0x00057C00 File Offset: 0x00055E00
|
|
protected virtual void PFBFOGJOOGP()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.AGPPPCIACDA;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.HFBHPFHAILN()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B2 RID: 4274 RVA: 0x00057C7C File Offset: 0x00055E7C
|
|
protected virtual void OIEOCJCAEGM()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B3 RID: 4275 RVA: 0x00057CA8 File Offset: 0x00055EA8
|
|
public void IJKFHAFNBBP(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010B4 RID: 4276 RVA: 0x00057CC8 File Offset: 0x00055EC8
|
|
public bool ICKJFPHAMIE()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010B5 RID: 4277 RVA: 0x00057CF0 File Offset: 0x00055EF0
|
|
protected virtual void CJOAPICKFHI()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.MBDGFCACMCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B6 RID: 4278 RVA: 0x00057D1C File Offset: 0x00055F1C
|
|
public int CGNDBHJKDPF()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x060010B7 RID: 4279 RVA: 0x00057D24 File Offset: 0x00055F24
|
|
protected virtual void BGJEJHLKNKA()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.NDMLIPIJCIO;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LAPNJPBHOID()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B8 RID: 4280 RVA: 0x00057DA0 File Offset: 0x00055FA0
|
|
protected virtual void JLDJCNFJHMP()
|
|
{
|
|
base.JDBELFHCDHB();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.AGPPPCIACDA));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010B9 RID: 4281 RVA: 0x00057DD0 File Offset: 0x00055FD0
|
|
public APOBGICDCJD EACECMCIHEG()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x060010BA RID: 4282 RVA: 0x00057DD8 File Offset: 0x00055FD8
|
|
protected virtual void JCFKGMDKILO()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.MBDGFCACMCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010BB RID: 4283 RVA: 0x00057E04 File Offset: 0x00056004
|
|
public bool NKGJJHMDPLI()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010BC RID: 4284 RVA: 0x00057E2C File Offset: 0x0005602C
|
|
private void FLLJPHHAIMG(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.ACEACLFJOAA && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.GMLINBOCIBJ().IPFPJCPGENH && this.GPIPCFAJLKJ() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.KFBGBHNOIEL().BOLBONELAEF.PPACPENBHKF();
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.KHMHBFPEDHK.JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010BD RID: 4285 RVA: 0x00057ED0 File Offset: 0x000560D0
|
|
public void IHAPIPDDNDL(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010BE RID: 4286 RVA: 0x00057EF0 File Offset: 0x000560F0
|
|
protected virtual void CCOHCCEHNIC()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.NDMLIPIJCIO));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.LAPNJPBHOID()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010BF RID: 4287 RVA: 0x00057F6C File Offset: 0x0005616C
|
|
public void DOPIOPJNLML(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010C0 RID: 4288 RVA: 0x00057F8C File Offset: 0x0005618C
|
|
protected virtual void PGIAPNBIIJG()
|
|
{
|
|
base.HABFGMOIDCO();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.KOAJLMKDEKM(new CollisionForwarder.FHFDBPABGIC(this.FLLJPHHAIMG));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010C1 RID: 4289 RVA: 0x00057FBC File Offset: 0x000561BC
|
|
public int GKJFMPKKNJP()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x060010C2 RID: 4290 RVA: 0x00057FC4 File Offset: 0x000561C4
|
|
public void OGFOOPNFABB(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010C3 RID: 4291 RVA: 0x00057FE4 File Offset: 0x000561E4
|
|
public bool CJHILBAIOKL()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010C4 RID: 4292 RVA: 0x0005800C File Offset: 0x0005620C
|
|
public APOBGICDCJD LKBCOIFFICH()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x060010C5 RID: 4293 RVA: 0x00058014 File Offset: 0x00056214
|
|
protected override void EGJOBLEGKNP()
|
|
{
|
|
base.PEALKHMDMKP();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.NDMLIPIJCIO;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010C6 RID: 4294 RVA: 0x00058044 File Offset: 0x00056244
|
|
public int ADFCGPJIGEE()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x060010C7 RID: 4295 RVA: 0x0005804C File Offset: 0x0005624C
|
|
private void OnTriggerEnter(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.ACEACLFJOAA && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.KHMHBFPEDHK.IPFPJCPGENH && this.ALPDLGGKAMJ && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.BKDFLNGCINH.BOLBONELAEF.IGOFELJMFOF;
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.KHMHBFPEDHK.JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010C8 RID: 4296 RVA: 0x000580F0 File Offset: 0x000562F0
|
|
protected virtual void MFIIGBECGEA()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010C9 RID: 4297 RVA: 0x0005811C File Offset: 0x0005631C
|
|
public void OPDLBAPOPMB(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x1700004F RID: 79
|
|
// (get) Token: 0x060010CA RID: 4298 RVA: 0x0005813C File Offset: 0x0005633C
|
|
public int EKANDABBFHL
|
|
{
|
|
get
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010CB RID: 4299 RVA: 0x00058144 File Offset: 0x00056344
|
|
public int KFEHLFOAODD()
|
|
{
|
|
return this.scoreAdjust;
|
|
}
|
|
|
|
// Token: 0x060010CC RID: 4300 RVA: 0x0005814C File Offset: 0x0005634C
|
|
protected virtual void GLBKBCBIOFJ()
|
|
{
|
|
base.BBOIJKLPABP();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.OnTriggerEnter));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.OKNCEHMFMCN()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010CD RID: 4301 RVA: 0x000581C8 File Offset: 0x000563C8
|
|
public void KCPFLMNJEPO(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010CE RID: 4302 RVA: 0x000581E8 File Offset: 0x000563E8
|
|
public void OEDDOLJPOEK(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010CF RID: 4303 RVA: 0x00058208 File Offset: 0x00056408
|
|
protected virtual void GJCJPHPMLKF()
|
|
{
|
|
base.IJGOKHIFMNI();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ -= this.NAEAIHKDLOH;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010D0 RID: 4304 RVA: 0x00058238 File Offset: 0x00056438
|
|
public bool NPIOJKBIJBO()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010D1 RID: 4305 RVA: 0x00058260 File Offset: 0x00056460
|
|
public void NFJMKKJGADF(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010D2 RID: 4306 RVA: 0x00058280 File Offset: 0x00056480
|
|
private void AGPPPCIACDA(Collider CINAFOGLFIB)
|
|
{
|
|
Tool tool = CINAFOGLFIB.OBFMDIEKHAN();
|
|
DiscGolfDisc discGolfDisc = ((!(tool != null)) ? null : tool.GetComponent<DiscGolfDisc>());
|
|
if (base.OPACLNEFBAA() && discGolfDisc != null && discGolfDisc.KHMHBFPEDHK != null && discGolfDisc.GMLINBOCIBJ().IPFPJCPGENH && this.DLDEAKMCNMI() && this.PickupEvent != null)
|
|
{
|
|
this.HEJPAABPEOA = discGolfDisc.GLGBBCBLOMD().BOLBONELAEF.PPACPENBHKF();
|
|
this.PickupEvent(this, discGolfDisc, discGolfDisc.GMLINBOCIBJ().JHJGDFHNBLO());
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010D3 RID: 4307 RVA: 0x00058324 File Offset: 0x00056524
|
|
public APOBGICDCJD MBJLAOAKBHJ()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x060010D4 RID: 4308 RVA: 0x0005832C File Offset: 0x0005652C
|
|
public void JMAPCLCKEEF(bool NOBAPCOKFIL)
|
|
{
|
|
this.visualRoot.gameObject.SetActive(NOBAPCOKFIL);
|
|
this.scoreAdjustText.enabled = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060010D5 RID: 4309 RVA: 0x0005834C File Offset: 0x0005654C
|
|
protected virtual void DLHCKBDMBAF()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.NMLOOIIKMAB(new CollisionForwarder.FHFDBPABGIC(this.BLNDPCHMPHH));
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.ADFCGPJIGEE()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010D6 RID: 4310 RVA: 0x000583C8 File Offset: 0x000565C8
|
|
protected virtual void IHHMHHKKINE()
|
|
{
|
|
base.NAJEHIFHFII();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.MBDGFCACMCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010D7 RID: 4311 RVA: 0x000583F4 File Offset: 0x000565F4
|
|
protected virtual void BEJPIHEKCML()
|
|
{
|
|
base.Awake();
|
|
this.HFKBMHPCMBK = base.GetComponentInChildren<CollisionForwarder>();
|
|
if (this.HFKBMHPCMBK != null)
|
|
{
|
|
this.HFKBMHPCMBK.DLJLJBPKIEJ += this.NDMLIPIJCIO;
|
|
}
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.text = Mathf.Abs(this.IFGBHNHMFOD()).ToString();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010D9 RID: 4313 RVA: 0x00058498 File Offset: 0x00056698
|
|
public void MKGFNDDPJJM()
|
|
{
|
|
if (this.hitParticles != null)
|
|
{
|
|
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.hitParticles);
|
|
if (pooledParticle != null)
|
|
{
|
|
Quaternion quaternion = base.transform.rotation;
|
|
if (this.HEJPAABPEOA != Vector3.zero)
|
|
{
|
|
quaternion = Quaternion.LookRotation(Vector3.Project(this.HEJPAABPEOA, base.transform.forward).normalized, base.transform.up);
|
|
}
|
|
pooledParticle.AONJILIKFOI(base.transform.position, quaternion, true);
|
|
AudioManager.Play3DSFX(this.onHit, base.transform.position, null);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010DA RID: 4314 RVA: 0x00058550 File Offset: 0x00056750
|
|
protected virtual void DDKLONCMLCO()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.ACEACLFJOAA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010DB RID: 4315 RVA: 0x0005857C File Offset: 0x0005677C
|
|
public bool JNGOGOCJNJG()
|
|
{
|
|
return !this.visualRoot.gameObject.activeInHierarchy || this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010DC RID: 4316 RVA: 0x000585A4 File Offset: 0x000567A4
|
|
protected virtual void GEADKPMEMEH()
|
|
{
|
|
base.BILFGFKPKPD();
|
|
if (this.scoreAdjustText != null)
|
|
{
|
|
this.scoreAdjustText.enabled = base.OPACLNEFBAA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010DD RID: 4317 RVA: 0x000585D0 File Offset: 0x000567D0
|
|
public bool NPGDGCEIEOH()
|
|
{
|
|
return this.visualRoot.gameObject.activeInHierarchy && this.scoreAdjustText.enabled;
|
|
}
|
|
|
|
// Token: 0x060010DE RID: 4318 RVA: 0x000585F8 File Offset: 0x000567F8
|
|
public APOBGICDCJD BBNEPAOHEOD()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x060010DF RID: 4319 RVA: 0x00058600 File Offset: 0x00056800
|
|
public APOBGICDCJD HDAJHPNAKNM()
|
|
{
|
|
return this.hole;
|
|
}
|
|
|
|
// Token: 0x0400023D RID: 573
|
|
[SerializeField]
|
|
[Header("Hole")]
|
|
private APOBGICDCJD hole = APOBGICDCJD.INVALID;
|
|
|
|
// Token: 0x0400023E RID: 574
|
|
[SerializeField]
|
|
private int scoreAdjust = -1;
|
|
|
|
// Token: 0x0400023F RID: 575
|
|
[SerializeField]
|
|
private Text scoreAdjustText;
|
|
|
|
// Token: 0x04000240 RID: 576
|
|
[SerializeField]
|
|
private PooledParticle hitParticles;
|
|
|
|
// Token: 0x04000241 RID: 577
|
|
[SerializeField]
|
|
private RecRoomAudioClip onHit;
|
|
|
|
// Token: 0x04000242 RID: 578
|
|
private CollisionForwarder HFKBMHPCMBK;
|
|
|
|
// Token: 0x04000243 RID: 579
|
|
private Vector3 HEJPAABPEOA = Vector3.zero;
|
|
|
|
// Token: 0x04000244 RID: 580
|
|
public DiscGolfPowerUp.FDEFJHLNDHK PickupEvent;
|
|
|
|
// Token: 0x0200004E RID: 78
|
|
// (Invoke) Token: 0x060010E1 RID: 4321
|
|
public delegate void FDEFJHLNDHK(DiscGolfPowerUp GPFKJDEGEDC, DiscGolfDisc DMCBCECGMCF, Player FKGLACMKGBD);
|
|
}
|