1754 lines
54 KiB
C#
1754 lines
54 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000059 RID: 89
|
|
public class DiscGolfWindTunnel : DiscGolfTriggerable
|
|
{
|
|
// Token: 0x0600124A RID: 4682 RVA: 0x00060218 File Offset: 0x0005E418
|
|
private void EKGJIEHAFAM(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.JEMHAPMHCAD(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600124B RID: 4683 RVA: 0x0006024C File Offset: 0x0005E44C
|
|
protected virtual void GOGJEGIGNAI()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1257f + this.windForce / 230f * 1384f, 490f, 958f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600124C RID: 4684 RVA: 0x00060308 File Offset: 0x0005E508
|
|
private void AFFLCMBOECH(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600124D RID: 4685 RVA: 0x00060348 File Offset: 0x0005E548
|
|
private void LBKBMFKKAHB(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 0; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600124E RID: 4686 RVA: 0x000603C4 File Offset: 0x0005E5C4
|
|
protected virtual void NAKGPJKLHDF()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i++)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(689f + this.windForce / 1439f * 551f, 1910f, 147f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600124F RID: 4687 RVA: 0x00060480 File Offset: 0x0005E680
|
|
private void NBLEPGCOGNF(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.JEMHAPMHCAD(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001250 RID: 4688 RVA: 0x000604B4 File Offset: 0x0005E6B4
|
|
protected override void PPMMGBMAEKA()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Active", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001251 RID: 4689 RVA: 0x000604E0 File Offset: 0x0005E6E0
|
|
private Transform DEPIDJBPLHP()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x06001252 RID: 4690 RVA: 0x000604E8 File Offset: 0x0005E6E8
|
|
private Transform HFJNGJLALOM()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x06001253 RID: 4691 RVA: 0x000604F0 File Offset: 0x0005E6F0
|
|
protected virtual void KOEMNKLHEBG()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("RpcMasterRequestPowerup", Mathf.Min(this.windForce * 524f * 124f, 99f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001254 RID: 4692 RVA: 0x00060590 File Offset: 0x0005E790
|
|
private void CHKNPLHDFOA(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001255 RID: 4693 RVA: 0x000605D0 File Offset: 0x0005E7D0
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
foreach (ParticleSystem particleSystem in this.NHLBHCCCGDN)
|
|
{
|
|
particleSystem.main.startSpeed = Mathf.Clamp(4.5f + this.windForce / 0.90000004f * 5.5f, 4.5f, 10f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001256 RID: 4694 RVA: 0x0006068C File Offset: 0x0005E88C
|
|
private bool KGBNGEOMBLH()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001257 RID: 4695 RVA: 0x0006069C File Offset: 0x0005E89C
|
|
private bool BPAKFJJGCAD()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001258 RID: 4696 RVA: 0x000606AC File Offset: 0x0005E8AC
|
|
public virtual void GHMLFMLCDPM()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.DGGEFIMKOJL(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001259 RID: 4697 RVA: 0x00060738 File Offset: 0x0005E938
|
|
private bool BHIHEDEDGED()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x0600125A RID: 4698 RVA: 0x00060748 File Offset: 0x0005E948
|
|
private void IDMBDGBOOPL()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Failed to modify game session private/public state", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(2f - this.windForce, 280f, 911f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.HFBNCBMAAJH("BEHAVIOR"))
|
|
{
|
|
int[] array = new int[3];
|
|
array[0] = 4;
|
|
array[8] = 3;
|
|
array[1] = 15;
|
|
array[0] = 96;
|
|
array[6] = 127;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("ReconnectAndRejoin() with AuthValues == null is not correct!", 995f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("Emote bubble: ", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.KHEBLOMJPJD), new DynamicUpdateManager.NLJIAHMEMLO(this.FFDFOBFCGAD)), new DynamicUpdateManager.CGICDANJGLP(this.FIIIFPHHIJN));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x0600125B RID: 4699 RVA: 0x00060848 File Offset: 0x0005EA48
|
|
public virtual void BLFNNNCAIHL()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Force && this.PJCHPNLMOJD.Count > 0)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.JEMHAPMHCAD(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600125C RID: 4700 RVA: 0x000608D4 File Offset: 0x0005EAD4
|
|
private void OnTriggerExit(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600125D RID: 4701 RVA: 0x00060914 File Offset: 0x0005EB14
|
|
private void DOLNLPNAEKA(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.DGGEFIMKOJL(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600125E RID: 4702 RVA: 0x00060948 File Offset: 0x0005EB48
|
|
protected virtual void FBFPEHNIPCN()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Request Upgraded!", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600125F RID: 4703 RVA: 0x00060974 File Offset: 0x0005EB74
|
|
protected virtual void NHKPHJCFDLL()
|
|
{
|
|
base.NDHBFLHIAHM();
|
|
DynamicUpdateManager.NCKMBFBMBFM.DNDKGMGECMO("type", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x06001260 RID: 4704 RVA: 0x00060994 File Offset: 0x0005EB94
|
|
private void MJCHPINKJPN(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.FBCOBHLMNHH())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.KFBGBHNOIEL().BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001261 RID: 4705 RVA: 0x00060A2C File Offset: 0x0005EC2C
|
|
private bool GMIMPCIOFIO()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001262 RID: 4706 RVA: 0x00060A3C File Offset: 0x0005EC3C
|
|
private void AGBDBGIEPID(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.PHADEGKOEMP(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001263 RID: 4707 RVA: 0x00060A70 File Offset: 0x0005EC70
|
|
private void AJJADINLBLD(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.JEMHAPMHCAD(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001264 RID: 4708 RVA: 0x00060AA4 File Offset: 0x0005ECA4
|
|
private void LFPPGCDCCCN(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001265 RID: 4709 RVA: 0x00060AE4 File Offset: 0x0005ECE4
|
|
private void LPADONDIPEK(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001266 RID: 4710 RVA: 0x00060B24 File Offset: 0x0005ED24
|
|
private void NINOMECLFAK(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001267 RID: 4711 RVA: 0x00060B64 File Offset: 0x0005ED64
|
|
private void JEMHAPMHCAD(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.JKHMBFOKJGO())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.BKDFLNGCINH.BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001268 RID: 4712 RVA: 0x00060BFC File Offset: 0x0005EDFC
|
|
private void AGFGPAGACCA(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001269 RID: 4713 RVA: 0x00060C3C File Offset: 0x0005EE3C
|
|
protected virtual void OONFOPHHIPJ()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("You revived ", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600126A RID: 4714 RVA: 0x00060C68 File Offset: 0x0005EE68
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
DynamicUpdateManager.NCKMBFBMBFM.UnregisterObject("DiscGolfParticles", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600126B RID: 4715 RVA: 0x00060C88 File Offset: 0x0005EE88
|
|
protected virtual void BKHPHJMIDFO()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i++)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1523f + this.windForce / 805f * 22f, 179f, 685f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600126C RID: 4716 RVA: 0x00060D44 File Offset: 0x0005EF44
|
|
private void NHADFEIGIOO(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600126D RID: 4717 RVA: 0x00060D84 File Offset: 0x0005EF84
|
|
private void PNNDIOPNOAP(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600126E RID: 4718 RVA: 0x00060DC4 File Offset: 0x0005EFC4
|
|
private void IIOMPOFMBPJ(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i += 0)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 1; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600126F RID: 4719 RVA: 0x00060E40 File Offset: 0x0005F040
|
|
private void POEDAMONBNL()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("position", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(239f - this.windForce, 628f, 195f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLPOOLBEOIG("Frozen"))
|
|
{
|
|
int[] array = new int[7];
|
|
array[1] = 2;
|
|
array[5] = 3;
|
|
array[1] = -101;
|
|
array[1] = 181;
|
|
array[8] = -70;
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterGroup("PlatformProfileId: {0}", 1967f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("scale", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.BHIHEDEDGED), new DynamicUpdateManager.NLJIAHMEMLO(this.FFDFOBFCGAD)), new DynamicUpdateManager.CGICDANJGLP(this.IGCMMOIIFFC));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x06001270 RID: 4720 RVA: 0x00060F40 File Offset: 0x0005F140
|
|
public virtual void GIBNCBOLBII()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Force && this.PJCHPNLMOJD.Count > 0)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.PHADEGKOEMP(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001271 RID: 4721 RVA: 0x00060FCC File Offset: 0x0005F1CC
|
|
protected virtual void PFFJDAEJMBO()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("time", Mathf.Min(this.windForce * 914f * 304f, 635f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001272 RID: 4722 RVA: 0x0006106C File Offset: 0x0005F26C
|
|
protected virtual void GGEEOINDDNB()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("ChallengeId", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001273 RID: 4723 RVA: 0x00061098 File Offset: 0x0005F298
|
|
private void PGHOAMPHHBD(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 1; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(false, ParticleSystemStopBehavior.StopEmitting);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001274 RID: 4724 RVA: 0x00061114 File Offset: 0x0005F314
|
|
protected virtual void EENPONMACMM()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Level", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001275 RID: 4725 RVA: 0x00061140 File Offset: 0x0005F340
|
|
protected override void MICFHMAIGIB()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1018f + this.windForce / 1763f * 1674f, 580f, 162f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001276 RID: 4726 RVA: 0x000611FC File Offset: 0x0005F3FC
|
|
private bool OJJDGHAMCJF()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001277 RID: 4727 RVA: 0x0006120C File Offset: 0x0005F40C
|
|
private void LPNDABBDGEK(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.DGGEFIMKOJL(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001278 RID: 4728 RVA: 0x00061240 File Offset: 0x0005F440
|
|
protected virtual void OAGPPJEGOBC()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 0; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(286f + this.windForce / 1159f * 1649f, 335f, 1860f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001279 RID: 4729 RVA: 0x000612FC File Offset: 0x0005F4FC
|
|
private Transform DJGJNICCBEH()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x0600127A RID: 4730 RVA: 0x00061304 File Offset: 0x0005F504
|
|
private void OOHMHEODLLL(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600127B RID: 4731 RVA: 0x00061344 File Offset: 0x0005F544
|
|
protected virtual void CHHOKIFAEDF()
|
|
{
|
|
base.NDHBFLHIAHM();
|
|
DynamicUpdateManager.NCKMBFBMBFM.PHOALDHJNKC(" (POV)", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600127C RID: 4732 RVA: 0x00061364 File Offset: 0x0005F564
|
|
protected virtual void ABBDFEGOFPH()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 1)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 0; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1550f + this.windForce / 1087f * 470f, 1159f, 1586f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600127D RID: 4733 RVA: 0x00061420 File Offset: 0x0005F620
|
|
private void NAEAIHKDLOH(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600127E RID: 4734 RVA: 0x00061460 File Offset: 0x0005F660
|
|
protected virtual void LJAJLFPAGBM()
|
|
{
|
|
base.IJGOKHIFMNI();
|
|
DynamicUpdateManager.NCKMBFBMBFM.NAFPHEDKPDK("Steamworks is not initialized.", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600127F RID: 4735 RVA: 0x00061480 File Offset: 0x0005F680
|
|
public virtual void LAMIBMEJNBA()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.HCLHPLMINEL(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001280 RID: 4736 RVA: 0x0006150C File Offset: 0x0005F70C
|
|
public virtual void IFPNHJABIGE()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Force && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.MJCHPINKJPN(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001281 RID: 4737 RVA: 0x00061598 File Offset: 0x0005F798
|
|
private Transform NGDHEBLIHPG()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x06001282 RID: 4738 RVA: 0x000615A0 File Offset: 0x0005F7A0
|
|
private void EBFILAJKNJD(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 0; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 1; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(true, ParticleSystemStopBehavior.StopEmitting);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001283 RID: 4739 RVA: 0x0006161C File Offset: 0x0005F81C
|
|
private void HCLHPLMINEL(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.HEDHKBFJMIG())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.BKDFLNGCINH.BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001284 RID: 4740 RVA: 0x000616B4 File Offset: 0x0005F8B4
|
|
private void FIIIFPHHIJN(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 1; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(false, ParticleSystemStopBehavior.StopEmittingAndClear);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001285 RID: 4741 RVA: 0x00061730 File Offset: 0x0005F930
|
|
protected virtual void ANJKECLIFKC()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Juniors Prohibited", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001286 RID: 4742 RVA: 0x0006175C File Offset: 0x0005F95C
|
|
private void LMIOIPADPCH(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001287 RID: 4743 RVA: 0x0006179C File Offset: 0x0005F99C
|
|
private bool KHEBLOMJPJD()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001288 RID: 4744 RVA: 0x000617AC File Offset: 0x0005F9AC
|
|
private bool FBHLPIMFKIG()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x06001289 RID: 4745 RVA: 0x000617BC File Offset: 0x0005F9BC
|
|
private void OnTriggerStay(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.LEDBJMOMAKE(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600128A RID: 4746 RVA: 0x000617F0 File Offset: 0x0005F9F0
|
|
public virtual void KCACGOGLGAJ()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 0)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.LEDBJMOMAKE(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600128B RID: 4747 RVA: 0x0006187C File Offset: 0x0005FA7C
|
|
private void OnTriggerEnter(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600128C RID: 4748 RVA: 0x000618BC File Offset: 0x0005FABC
|
|
private void PJBNPOCFKCL(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600128D RID: 4749 RVA: 0x000618FC File Offset: 0x0005FAFC
|
|
private void IIBHNJKFMFH()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("{0}: {1}", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(124f - this.windForce, 503f, 1091f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.IsGroupRegistered("pitch"))
|
|
{
|
|
int[] array = new int[1];
|
|
array[0] = 1;
|
|
array[2] = 6;
|
|
array[0] = 60;
|
|
array[0] = 183;
|
|
array[4] = 134;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("Timeout waiting to spawn player (zombie room, with heartbeat)", 1089f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("All images loaded from the local cache!", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.OJJDGHAMCJF), new DynamicUpdateManager.NLJIAHMEMLO(this.NGDHEBLIHPG)), new DynamicUpdateManager.CGICDANJGLP(this.CGICDANJGLP));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x0600128E RID: 4750 RVA: 0x000619FC File Offset: 0x0005FBFC
|
|
private Transform FFDFOBFCGAD()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x0600128F RID: 4751 RVA: 0x00061A04 File Offset: 0x0005FC04
|
|
public virtual void HEKDNCDPMHM()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Force && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.MJCHPINKJPN(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001290 RID: 4752 RVA: 0x00061A90 File Offset: 0x0005FC90
|
|
protected override void DCGCFFFPABH()
|
|
{
|
|
base.AECBOJELNAI();
|
|
DynamicUpdateManager.NCKMBFBMBFM.NAFPHEDKPDK("hidden", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x06001291 RID: 4753 RVA: 0x00061AB0 File Offset: 0x0005FCB0
|
|
protected virtual void DAMLBCOHMIJ()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("onupdate", Mathf.Min(this.windForce * 310f * 690f, 205f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001292 RID: 4754 RVA: 0x00061B50 File Offset: 0x0005FD50
|
|
private void PINHMNLCHGK()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("handles", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1319f - this.windForce, 1227f, 1844f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLPOOLBEOIG("ping: {6}[+/-{7}]ms resent:{8} \n\nmax ms between\nsend: {0,4} \ndispatch: {1,4} \n\nlongest dispatch for: \nev({3}):{2,3}ms \nop({5}):{4,3}ms"))
|
|
{
|
|
int[] array = new int[5];
|
|
array[0] = 4;
|
|
array[3] = 8;
|
|
array[1] = 115;
|
|
array[4] = 157;
|
|
array[8] = -39;
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterGroup("EndTime", 1767f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("y", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.DDBJOCGMPGN), new DynamicUpdateManager.NLJIAHMEMLO(this.NGDHEBLIHPG)), new DynamicUpdateManager.CGICDANJGLP(this.LBKBMFKKAHB));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x06001293 RID: 4755 RVA: 0x00061C50 File Offset: 0x0005FE50
|
|
protected virtual void DHKOHMJLFCA()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 1)
|
|
{
|
|
foreach (ParticleSystem particleSystem in this.NHLBHCCCGDN)
|
|
{
|
|
particleSystem.main.startSpeed = Mathf.Clamp(50f + this.windForce / 1175f * 1402f, 1927f, 813f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001294 RID: 4756 RVA: 0x00061D0C File Offset: 0x0005FF0C
|
|
protected virtual void CHEDOHFELGH()
|
|
{
|
|
base.AECBOJELNAI();
|
|
DynamicUpdateManager.NCKMBFBMBFM.NAFPHEDKPDK("ObscuredShort vs short, ", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x06001295 RID: 4757 RVA: 0x00061D2C File Offset: 0x0005FF2C
|
|
private void AGCEPCJHFBD()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("OpJoinLobby()", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1259f - this.windForce, 261f, 653f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLPOOLBEOIG("LAST_USE_TIME"))
|
|
{
|
|
int[] array = new int[] { 7, 0, 0, 4 };
|
|
array[0] = 4;
|
|
array[4] = -18;
|
|
array[8] = -18;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("BannedUntil", 689f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("Verifying...", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.KHEBLOMJPJD), new DynamicUpdateManager.NLJIAHMEMLO(this.HFJNGJLALOM)), new DynamicUpdateManager.CGICDANJGLP(this.NGAJHBFDJHM));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x06001296 RID: 4758 RVA: 0x00061E2C File Offset: 0x0006002C
|
|
protected virtual void ENGNDJADBDF()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("publish", Mathf.Min(this.windForce * 138f * 1513f, 1377f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001297 RID: 4759 RVA: 0x00061ECC File Offset: 0x000600CC
|
|
private void EBIJNHGOHNN(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i += 0)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 1; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(false, ParticleSystemStopBehavior.StopEmitting);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001298 RID: 4760 RVA: 0x00061F48 File Offset: 0x00060148
|
|
protected virtual void GHIHJLLLCPH()
|
|
{
|
|
base.JDBELFHCDHB();
|
|
DynamicUpdateManager.NCKMBFBMBFM.DNDKGMGECMO("Not available to junior profiles", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x06001299 RID: 4761 RVA: 0x00061F68 File Offset: 0x00060168
|
|
protected virtual void MCECFOCPOCA()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 1)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i++)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(293f + this.windForce / 202f * 397f, 424f, 997f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600129A RID: 4762 RVA: 0x00062024 File Offset: 0x00060224
|
|
private void JFCPKBNLJFL(Collider GGGBDENGHFM)
|
|
{
|
|
if (base.HHEECLBGLCE && this.windForceMode == ForceMode.Force)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
this.DGGEFIMKOJL(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600129B RID: 4763 RVA: 0x00062058 File Offset: 0x00060258
|
|
protected virtual void HKJDCDEMIPG()
|
|
{
|
|
base.DCGCFFFPABH();
|
|
DynamicUpdateManager.NCKMBFBMBFM.DNDKGMGECMO("_RightReflectionTex", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x0600129C RID: 4764 RVA: 0x00062078 File Offset: 0x00060278
|
|
protected virtual void LFMJEHABECH()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool(" ch#", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600129E RID: 4766 RVA: 0x000620D4 File Offset: 0x000602D4
|
|
protected virtual void AJMAOAOGHFK()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 0)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i++)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1020f + this.windForce / 1796f * 1026f, 460f, 1643f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600129F RID: 4767 RVA: 0x00062190 File Offset: 0x00060390
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("_Speed", Mathf.Min(this.windForce * 8f * 3.1415927f, 13f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A0 RID: 4768 RVA: 0x00062230 File Offset: 0x00060430
|
|
private void DGGEFIMKOJL(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.MPFHNLCMNKM())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.KFBGBHNOIEL().BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A1 RID: 4769 RVA: 0x000622C8 File Offset: 0x000604C8
|
|
protected virtual void NABHIMBEJOF()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("YesVotes", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A2 RID: 4770 RVA: 0x000622F4 File Offset: 0x000604F4
|
|
protected virtual void IDFGKJHJBLA()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 1)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1720f + this.windForce / 1983f * 1150f, 325f, 888f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A3 RID: 4771 RVA: 0x000623B0 File Offset: 0x000605B0
|
|
private void NGAJHBFDJHM(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i += 0)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 0; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A4 RID: 4772 RVA: 0x0006242C File Offset: 0x0006062C
|
|
protected virtual void JDOGCGIDOID()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("It looks like some of your ", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A5 RID: 4773 RVA: 0x00062458 File Offset: 0x00060658
|
|
private void ADIMNKKPECO()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Match Point!", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1540f - this.windForce, 648f, 1650f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.HFBNCBMAAJH("iTween Error: Drawing a line with Handles is temporarily disabled because of compatability issues with Unity 2.6!"))
|
|
{
|
|
int[] array = new int[8];
|
|
array[1] = 2;
|
|
array[8] = 0;
|
|
array[0] = 61;
|
|
array[7] = -194;
|
|
array[7] = 116;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("Owner Transfers", 738f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("region", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.FBHLPIMFKIG), new DynamicUpdateManager.NLJIAHMEMLO(this.DEPIDJBPLHP)), new DynamicUpdateManager.CGICDANJGLP(this.NGAJHBFDJHM));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012A6 RID: 4774 RVA: 0x00062558 File Offset: 0x00060758
|
|
private void Start()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Active", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1f - this.windForce, 0.1f, 1f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.IsGroupRegistered("DiscGolfParticles"))
|
|
{
|
|
int[] array = new int[] { 4, 0, 0, 0, 4 };
|
|
array[1] = 10;
|
|
array[2] = int.MaxValue;
|
|
array[3] = int.MaxValue;
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterGroup("DiscGolfParticles", float.MaxValue, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("DiscGolfParticles", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.BPAKFJJGCAD), new DynamicUpdateManager.NLJIAHMEMLO(this.FMGFCBECOFD)), new DynamicUpdateManager.CGICDANJGLP(this.CGICDANJGLP));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012A7 RID: 4775 RVA: 0x00062658 File Offset: 0x00060858
|
|
public virtual void LGFGKPKBFLF()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.JEMHAPMHCAD(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A8 RID: 4776 RVA: 0x000626E4 File Offset: 0x000608E4
|
|
private void PHADEGKOEMP(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.HEDHKBFJMIG())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.JLGBKELAENA().BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012A9 RID: 4777 RVA: 0x0006277C File Offset: 0x0006097C
|
|
protected virtual void EELFIENBNBJ()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("action", Mathf.Min(this.windForce * 2f * 166f, 1914f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AA RID: 4778 RVA: 0x0006281C File Offset: 0x00060A1C
|
|
private void FNHEMECFGGH(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AB RID: 4779 RVA: 0x0006285C File Offset: 0x00060A5C
|
|
private void MALCLHCJNHG(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && !this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Add(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AC RID: 4780 RVA: 0x0006289C File Offset: 0x00060A9C
|
|
protected virtual void NIDPNEAEBLB()
|
|
{
|
|
base.Update();
|
|
if (base.HHEECLBGLCE && this.fanRenderer != null)
|
|
{
|
|
this.fanRenderer.material.SetFloat("PlayerPartyColorID", Mathf.Min(this.windForce * 543f * 793f, 1281f));
|
|
if (Time.time > this.HDMMIDMAGGH && this.fanAudioSource != null)
|
|
{
|
|
this.fanAudioSource.Play();
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AD RID: 4781 RVA: 0x0006293C File Offset: 0x00060B3C
|
|
private Transform AJOHHJKNCCP()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x060012AE RID: 4782 RVA: 0x00062944 File Offset: 0x00060B44
|
|
private void IGCMMOIIFFC(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 1; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 0; j < this.JBOPIMLNCBG.Length; j += 0)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(false, ParticleSystemStopBehavior.StopEmitting);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012AF RID: 4783 RVA: 0x000629C0 File Offset: 0x00060BC0
|
|
private Transform BEICKDDPOCK()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x060012B0 RID: 4784 RVA: 0x000629C8 File Offset: 0x00060BC8
|
|
protected virtual void MDKBJAMMHIO()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("January", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B1 RID: 4785 RVA: 0x000629F4 File Offset: 0x00060BF4
|
|
private Transform FMGFCBECOFD()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x060012B2 RID: 4786 RVA: 0x000629FC File Offset: 0x00060BFC
|
|
protected virtual void EOMCMBFEGLM()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("other_activityNameFriendly", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B3 RID: 4787 RVA: 0x00062A28 File Offset: 0x00060C28
|
|
public override void Trigger()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 0)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.LEDBJMOMAKE(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B4 RID: 4788 RVA: 0x00062AB4 File Offset: 0x00060CB4
|
|
private void PFOGCBPMCLE(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.GPGODDDDIOK())
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.KFBGBHNOIEL().BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B5 RID: 4789 RVA: 0x00062B4C File Offset: 0x00060D4C
|
|
private void NJCGLHJMAEC()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("y", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1633f - this.windForce, 1311f, 1283f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.IsGroupRegistered("Update your access token by selecting 'Oculus Platform' -> 'Edit Settings'"))
|
|
{
|
|
int[] array = new int[6];
|
|
array[1] = 4;
|
|
array[7] = 7;
|
|
array[1] = -61;
|
|
array[8] = -31;
|
|
array[1] = -63;
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterGroup("<b>ObscuredVector3:</b> ", 541f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("PlayerId", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.BPAKFJJGCAD), new DynamicUpdateManager.NLJIAHMEMLO(this.HFJNGJLALOM)), new DynamicUpdateManager.CGICDANJGLP(this.NGAJHBFDJHM));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012B6 RID: 4790 RVA: 0x00062C4C File Offset: 0x00060E4C
|
|
private Transform LNPHPMFDHDB()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x060012B7 RID: 4791 RVA: 0x00062C54 File Offset: 0x00060E54
|
|
private void OJBOGGDFDOL(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012B8 RID: 4792 RVA: 0x00062C94 File Offset: 0x00060E94
|
|
private void DOMHFCPJPPH()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Back", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(1508f - this.windForce, 1510f, 1573f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLPOOLBEOIG("Restoring..."))
|
|
{
|
|
int[] array = new int[0];
|
|
array[0] = 8;
|
|
array[8] = 5;
|
|
array[0] = 67;
|
|
array[1] = -80;
|
|
array[8] = 35;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("speed", 1716f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("EPNAIKCMNOA", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.GMIMPCIOFIO), new DynamicUpdateManager.NLJIAHMEMLO(this.DEPIDJBPLHP)), new DynamicUpdateManager.CGICDANJGLP(this.CGICDANJGLP));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012B9 RID: 4793 RVA: 0x00062D94 File Offset: 0x00060F94
|
|
private bool DDBJOCGMPGN()
|
|
{
|
|
return this.fanRenderer.isVisible;
|
|
}
|
|
|
|
// Token: 0x060012BA RID: 4794 RVA: 0x00062DA4 File Offset: 0x00060FA4
|
|
public virtual void PPALIJBGPMB()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 0)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.MJCHPINKJPN(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012BB RID: 4795 RVA: 0x00062E30 File Offset: 0x00061030
|
|
private void PDCPCLGNHLE(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012BC RID: 4796 RVA: 0x00062E70 File Offset: 0x00061070
|
|
protected virtual void JKFJJBJPMID()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("ns.exitgames.com", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012BD RID: 4797 RVA: 0x00062E9C File Offset: 0x0006109C
|
|
private void LHJGNOODHPG()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool(":", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(332f - this.windForce, 1331f, 1248f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLPOOLBEOIG("I LOVE MY GIRLz"))
|
|
{
|
|
int[] array = new int[7];
|
|
array[1] = 8;
|
|
array[5] = 6;
|
|
array[1] = 29;
|
|
array[5] = 164;
|
|
array[0] = 133;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("ShareCams", 1607f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("Editor only.", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.DDBJOCGMPGN), new DynamicUpdateManager.NLJIAHMEMLO(this.HFJNGJLALOM)), new DynamicUpdateManager.CGICDANJGLP(this.IIOMPOFMBPJ));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012BE RID: 4798 RVA: 0x00062F9C File Offset: 0x0006119C
|
|
protected virtual void GIHBOGHIBFC()
|
|
{
|
|
base.OnDestroy();
|
|
DynamicUpdateManager.NCKMBFBMBFM.DNDKGMGECMO("Check the sign for the next event", base.gameObject);
|
|
}
|
|
|
|
// Token: 0x060012BF RID: 4799 RVA: 0x00062FBC File Offset: 0x000611BC
|
|
private void LEDBJMOMAKE(DiscGolfDisc DMCBCECGMCF)
|
|
{
|
|
if (DMCBCECGMCF != null && DMCBCECGMCF.EPAMDJPBFBC)
|
|
{
|
|
Vector3 vector = ((!this.aimAssisted || !(this.AimAssistTarget != null)) ? base.transform.forward : (this.AimAssistTarget.position - DMCBCECGMCF.transform.position).normalized);
|
|
DMCBCECGMCF.BKDFLNGCINH.BOLBONELAEF.AddForce(vector * this.windForce, this.windForceMode);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C0 RID: 4800 RVA: 0x00063054 File Offset: 0x00061254
|
|
private void CBNFIOBLLIH()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("Username", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(645f - this.windForce, 33f, 1875f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.IsGroupRegistered("Step: {0}. {1}"))
|
|
{
|
|
int[] array = new int[0];
|
|
array[1] = 8;
|
|
array[0] = 3;
|
|
array[0] = -27;
|
|
array[5] = -32;
|
|
array[0] = -25;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("Connection timed out!", 1539f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("disabledynamic", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.GMIMPCIOFIO), new DynamicUpdateManager.NLJIAHMEMLO(this.DJGJNICCBEH)), new DynamicUpdateManager.CGICDANJGLP(this.NGAJHBFDJHM));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012C1 RID: 4801 RVA: 0x00063154 File Offset: 0x00061354
|
|
protected virtual void DJFDMLCJBBG()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("CheerGreatHost", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C2 RID: 4802 RVA: 0x00063180 File Offset: 0x00061380
|
|
protected virtual void ACEJACGIDEL()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("{not_found}", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C3 RID: 4803 RVA: 0x000631AC File Offset: 0x000613AC
|
|
private void CGICDANJGLP(bool KCMKALAMJGK)
|
|
{
|
|
if (KCMKALAMJGK != this.GFFMDDMNCCC)
|
|
{
|
|
if (KCMKALAMJGK)
|
|
{
|
|
for (int i = 0; i < this.JBOPIMLNCBG.Length; i++)
|
|
{
|
|
this.JBOPIMLNCBG[i].Play();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
for (int j = 0; j < this.JBOPIMLNCBG.Length; j++)
|
|
{
|
|
this.JBOPIMLNCBG[j].Stop(true, ParticleSystemStopBehavior.StopEmitting);
|
|
}
|
|
}
|
|
this.GFFMDDMNCCC = KCMKALAMJGK;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C4 RID: 4804 RVA: 0x00063228 File Offset: 0x00061428
|
|
private Transform PCIHOEHHGLB()
|
|
{
|
|
return base.transform;
|
|
}
|
|
|
|
// Token: 0x060012C5 RID: 4805 RVA: 0x00063230 File Offset: 0x00061430
|
|
protected virtual void IADOLHIHKKN()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("CNDBNOEDHFF", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C6 RID: 4806 RVA: 0x0006325C File Offset: 0x0006145C
|
|
private void HDCAMLJLKHC()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("_Decal_Tex", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(864f - this.windForce, 765f, 140f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.LLMFLBBKNGC("Mercy Rule: "))
|
|
{
|
|
int[] array = new int[7];
|
|
array[1] = 0;
|
|
array[7] = 1;
|
|
array[0] = -47;
|
|
array[4] = -164;
|
|
array[7] = 151;
|
|
DynamicUpdateManager.NCKMBFBMBFM.GAJNIFNMOMP("includechildren", 134f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject(" - ", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.KGBNGEOMBLH), new DynamicUpdateManager.NLJIAHMEMLO(this.HFJNGJLALOM)), new DynamicUpdateManager.CGICDANJGLP(this.FIIIFPHHIJN));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012C7 RID: 4807 RVA: 0x0006335C File Offset: 0x0006155C
|
|
protected virtual void LGGIAEAAMGM()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool(", ", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C8 RID: 4808 RVA: 0x00063388 File Offset: 0x00061588
|
|
public virtual void FNLCKNIEMGM()
|
|
{
|
|
base.Trigger();
|
|
if (IHFKMIAHBFP.HCHIDMOLLAD && this.windForceMode == ForceMode.Impulse && this.PJCHPNLMOJD.Count > 1)
|
|
{
|
|
foreach (DiscGolfDisc discGolfDisc in this.PJCHPNLMOJD)
|
|
{
|
|
this.PFOGCBPMCLE(discGolfDisc);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012C9 RID: 4809 RVA: 0x00063414 File Offset: 0x00061614
|
|
private void OMKBNLGFNIL()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("front", base.HHEECLBGLCE);
|
|
}
|
|
this.DGBIBJPIMEJ = Mathf.Clamp(620f - this.windForce, 1445f, 880f);
|
|
this.HDMMIDMAGGH = Time.time + this.DGBIBJPIMEJ;
|
|
if (!DynamicUpdateManager.NCKMBFBMBFM.IsGroupRegistered("move"))
|
|
{
|
|
int[] array = new int[4];
|
|
array[0] = 5;
|
|
array[1] = 6;
|
|
array[0] = 110;
|
|
array[0] = -18;
|
|
array[8] = 143;
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterGroup("demoRect", 99f, array);
|
|
}
|
|
DynamicUpdateManager.NCKMBFBMBFM.RegisterObject("sentToPlayerId", base.gameObject, DynamicUpdateManager.DefaultCostFunction(new DynamicUpdateManager.IIEGGLHMOBH(this.OJJDGHAMCJF), new DynamicUpdateManager.NLJIAHMEMLO(this.DJGJNICCBEH)), new DynamicUpdateManager.CGICDANJGLP(this.LBKBMFKKAHB));
|
|
this.JBOPIMLNCBG = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
|
|
// Token: 0x060012CA RID: 4810 RVA: 0x00063514 File Offset: 0x00061714
|
|
private void LPCIOCPJKDE(Collider GGGBDENGHFM)
|
|
{
|
|
DiscGolfDisc componentInParent = GGGBDENGHFM.GetComponentInParent<DiscGolfDisc>();
|
|
if (componentInParent != null && this.PJCHPNLMOJD.Contains(componentInParent))
|
|
{
|
|
this.PJCHPNLMOJD.Remove(componentInParent);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012CB RID: 4811 RVA: 0x00063554 File Offset: 0x00061754
|
|
protected virtual void FMJEMCLLLJM()
|
|
{
|
|
if (this.gizmoAnimator != null)
|
|
{
|
|
this.gizmoAnimator.SetBool("play", base.HHEECLBGLCE);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060012CC RID: 4812 RVA: 0x00063580 File Offset: 0x00061780
|
|
protected virtual void IOKIFHGPMKI()
|
|
{
|
|
base.Awake();
|
|
if (this.fanAudioSource == null)
|
|
{
|
|
this.fanAudioSource = base.GetComponent<AudioSource>();
|
|
}
|
|
if (this.NHLBHCCCGDN == null)
|
|
{
|
|
this.NHLBHCCCGDN = base.GetComponentsInChildren<ParticleSystem>();
|
|
}
|
|
if (this.NHLBHCCCGDN != null && this.NHLBHCCCGDN.Length > 1)
|
|
{
|
|
ParticleSystem[] nhlbhcccgdn = this.NHLBHCCCGDN;
|
|
for (int i = 1; i < nhlbhcccgdn.Length; i += 0)
|
|
{
|
|
ParticleSystem particleSystem = nhlbhcccgdn[i];
|
|
particleSystem.main.startSpeed = Mathf.Clamp(1574f + this.windForce / 1303f * 367f, 1713f, 1228f);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400026F RID: 623
|
|
private const string OODGBFOJPPP = "DiscGolfParticles";
|
|
|
|
// Token: 0x04000270 RID: 624
|
|
[SerializeField]
|
|
[Header("Wind Tunnel")]
|
|
private float windForce = 9.8f;
|
|
|
|
// Token: 0x04000271 RID: 625
|
|
[SerializeField]
|
|
private ForceMode windForceMode;
|
|
|
|
// Token: 0x04000272 RID: 626
|
|
[SerializeField]
|
|
private Renderer fanRenderer;
|
|
|
|
// Token: 0x04000273 RID: 627
|
|
[Header("Audio")]
|
|
[SerializeField]
|
|
private AudioSource fanAudioSource;
|
|
|
|
// Token: 0x04000274 RID: 628
|
|
[Header("Visuals")]
|
|
private ParticleSystem[] NHLBHCCCGDN;
|
|
|
|
// Token: 0x04000275 RID: 629
|
|
[Header("Aim Assist")]
|
|
[SerializeField]
|
|
private bool aimAssisted;
|
|
|
|
// Token: 0x04000276 RID: 630
|
|
private const float IMIFBJCBDIH = 4.5f;
|
|
|
|
// Token: 0x04000277 RID: 631
|
|
private const float JNIFFFNIEGO = 10f;
|
|
|
|
// Token: 0x04000278 RID: 632
|
|
private const float GGKKGJEJHNB = 0.3f;
|
|
|
|
// Token: 0x04000279 RID: 633
|
|
private const float OLBGLBJAJCG = 1.2f;
|
|
|
|
// Token: 0x0400027A RID: 634
|
|
public Transform AimAssistTarget;
|
|
|
|
// Token: 0x0400027B RID: 635
|
|
private List<DiscGolfDisc> PJCHPNLMOJD = new List<DiscGolfDisc>();
|
|
|
|
// Token: 0x0400027C RID: 636
|
|
private float HDMMIDMAGGH;
|
|
|
|
// Token: 0x0400027D RID: 637
|
|
private float DGBIBJPIMEJ = 1f;
|
|
|
|
// Token: 0x0400027E RID: 638
|
|
private ParticleSystem[] JBOPIMLNCBG;
|
|
|
|
// Token: 0x0400027F RID: 639
|
|
private bool GFFMDDMNCCC = true;
|
|
}
|