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

410 lines
11 KiB
C#

using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Serialization;
// Token: 0x02000FAE RID: 4014
public class ToolTrail : MonoBehaviour
{
// Token: 0x06021988 RID: 137608 RVA: 0x0092E640 File Offset: 0x0092C840
private void IOKIFHGPMKI()
{
this.COMHEONOMBA = base.GetComponentInParent<Tool>();
this.COMHEONOMBA.PLPIAOHJBOB += this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC += this.DMDOMBBGBGH;
this.COMHEONOMBA.OBNBBONFCHE(new Tool.LKGCDDCODNH(this.IPCLNKMCDPL));
this.GLKONHBIDJG = base.GetComponent<TrailRenderer>();
}
// Token: 0x06021989 RID: 137609 RVA: 0x0092E6AC File Offset: 0x0092C8AC
private void DMDOMBBGBGH(Tool ENBMEDIFBLM)
{
this.CEKOBOFHIGJ();
if (!this.visibleWhileHeld)
{
this.GLKONHBIDJG.time = 555f;
}
else
{
this.GLKONHBIDJG.time = this.heldTime;
}
}
// Token: 0x0602198A RID: 137610 RVA: 0x0092E6E8 File Offset: 0x0092C8E8
private IEnumerator NCPHLBJKPBM(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
float num = DGIOMJDEEIF;
while (num >= 0f)
{
yield return null;
num -= Time.deltaTime;
float num2 = num / DGIOMJDEEIF;
this.GLKONHBIDJG.time = LIHAPNOOGNB * num2;
}
this.GLKONHBIDJG.time = 0f;
this.MGLDIPOANOP = null;
yield break;
}
// Token: 0x0602198B RID: 137611 RVA: 0x0092E714 File Offset: 0x0092C914
private void OnDestroy()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC -= this.OABKDPCFECF;
this.COMHEONOMBA.CDDKIBBMALJ -= this.AGOFPJFKBAD;
}
// Token: 0x0602198C RID: 137612 RVA: 0x0092E768 File Offset: 0x0092C968
private void JOPKIMBMMOM(Tool ENBMEDIFBLM)
{
if (!this.visibleUponRelease)
{
this.GLKONHBIDJG.time = 0f;
}
else
{
this.GLKONHBIDJG.time = this.releaseTime;
if (this.fadeOutUponRelease)
{
this.GOEHHHKJPLL(this.releaseFadeOutDuration, this.releaseTime);
}
}
}
// Token: 0x0602198D RID: 137613 RVA: 0x0092E7C4 File Offset: 0x0092C9C4
private void AHLMADACOLB()
{
this.COMHEONOMBA = base.GetComponentInParent<Tool>();
this.COMHEONOMBA.PLPIAOHJBOB += this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC += this.OABKDPCFECF;
this.COMHEONOMBA.JPKNHKMCHPB(new Tool.LKGCDDCODNH(this.IPCLNKMCDPL));
this.GLKONHBIDJG = base.GetComponent<TrailRenderer>();
}
// Token: 0x0602198E RID: 137614 RVA: 0x0092E830 File Offset: 0x0092CA30
private void CEKOBOFHIGJ()
{
if (this.MGLDIPOANOP != null)
{
base.StopCoroutine(this.MGLDIPOANOP);
this.MGLDIPOANOP = null;
}
}
// Token: 0x0602198F RID: 137615 RVA: 0x0092E850 File Offset: 0x0092CA50
private void PAKPLLPDIOG()
{
this.COMHEONOMBA = base.GetComponentInParent<Tool>();
this.COMHEONOMBA.PLPIAOHJBOB += this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC += this.DMDOMBBGBGH;
this.COMHEONOMBA.CDDKIBBMALJ += this.AGOFPJFKBAD;
this.GLKONHBIDJG = base.GetComponent<TrailRenderer>();
}
// Token: 0x06021990 RID: 137616 RVA: 0x0092E8BC File Offset: 0x0092CABC
private IEnumerator JPMBKLDDLBK(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
num = DGIOMJDEEIF;
while (num >= 0f)
{
yield return null;
num -= Time.deltaTime;
num2 = num / DGIOMJDEEIF;
this.GLKONHBIDJG.time = LIHAPNOOGNB * num2;
}
this.GLKONHBIDJG.time = 0f;
this.MGLDIPOANOP = null;
yield break;
}
// Token: 0x06021991 RID: 137617 RVA: 0x0092E8E8 File Offset: 0x0092CAE8
private void IPCLNKMCDPL(Tool COMHEONOMBA, Weapon BLBPGNFCBEO, FLDPCEKNKCA BDOBLEKAEAM, Vector3 FHFHOMKFHCI)
{
this.CEKOBOFHIGJ();
if (!this.visibleAfterAttackApplied)
{
this.GLKONHBIDJG.time = 807f;
}
else
{
this.GLKONHBIDJG.time = this.forceAppliedTime;
if (this.fadeOutAfterForceApplied)
{
this.AFHNFAKFPNK(this.forceAppliedFadeOutDuration, this.forceAppliedTime);
}
}
}
// Token: 0x06021992 RID: 137618 RVA: 0x0092E94C File Offset: 0x0092CB4C
private void OFOPHGFIAJM()
{
this.COMHEONOMBA = base.GetComponentInParent<Tool>();
this.COMHEONOMBA.PLPIAOHJBOB += this.DBBOHNFKCJE;
this.COMHEONOMBA.GFBCCFIMFEC += this.DMDOMBBGBGH;
this.COMHEONOMBA.OBNBBONFCHE(new Tool.LKGCDDCODNH(this.AGOFPJFKBAD));
this.GLKONHBIDJG = base.GetComponent<TrailRenderer>();
}
// Token: 0x06021993 RID: 137619 RVA: 0x0092E9B8 File Offset: 0x0092CBB8
private void PPCCKMMADGK()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC -= this.OABKDPCFECF;
this.COMHEONOMBA.CDDKIBBMALJ -= this.IPCLNKMCDPL;
}
// Token: 0x06021994 RID: 137620 RVA: 0x0092EA0C File Offset: 0x0092CC0C
private void Awake()
{
this.COMHEONOMBA = base.GetComponentInParent<Tool>();
this.COMHEONOMBA.PLPIAOHJBOB += this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC += this.OABKDPCFECF;
this.COMHEONOMBA.CDDKIBBMALJ += this.AGOFPJFKBAD;
this.GLKONHBIDJG = base.GetComponent<TrailRenderer>();
}
// Token: 0x06021995 RID: 137621 RVA: 0x0092EA78 File Offset: 0x0092CC78
private void GOEHHHKJPLL(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
this.CEKOBOFHIGJ();
if (this.COMHEONOMBA != null && this.COMHEONOMBA.gameObject.activeSelf)
{
this.MGLDIPOANOP = base.StartCoroutine(this.JPMBKLDDLBK(DGIOMJDEEIF, LIHAPNOOGNB));
}
}
// Token: 0x06021996 RID: 137622 RVA: 0x0092EAC8 File Offset: 0x0092CCC8
private void GIGHAGFGLLB()
{
this.CEKOBOFHIGJ();
}
// Token: 0x06021997 RID: 137623 RVA: 0x0092EAD0 File Offset: 0x0092CCD0
private IEnumerator PJHBCOCBHAG(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
num = DGIOMJDEEIF;
while (num >= 0f)
{
yield return null;
num -= Time.deltaTime;
num2 = num / DGIOMJDEEIF;
this.GLKONHBIDJG.time = LIHAPNOOGNB * num2;
}
this.GLKONHBIDJG.time = 0f;
this.MGLDIPOANOP = null;
yield break;
}
// Token: 0x06021998 RID: 137624 RVA: 0x0092EAFC File Offset: 0x0092CCFC
private void CJAHNDDKCPC()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.DBBOHNFKCJE;
this.COMHEONOMBA.GFBCCFIMFEC -= this.OABKDPCFECF;
this.COMHEONOMBA.CDDKIBBMALJ -= this.IPCLNKMCDPL;
}
// Token: 0x06021999 RID: 137625 RVA: 0x0092EB50 File Offset: 0x0092CD50
private void NBIGGANPOAA()
{
this.CEKOBOFHIGJ();
}
// Token: 0x0602199A RID: 137626 RVA: 0x0092EB58 File Offset: 0x0092CD58
private void OABKDPCFECF(Tool ENBMEDIFBLM)
{
this.CEKOBOFHIGJ();
if (!this.visibleWhileHeld)
{
this.GLKONHBIDJG.time = 0f;
}
else
{
this.GLKONHBIDJG.time = this.heldTime;
}
}
// Token: 0x0602199B RID: 137627 RVA: 0x0092EB94 File Offset: 0x0092CD94
private void CKOGKPHHMFL(Tool COMHEONOMBA, Weapon BLBPGNFCBEO, FLDPCEKNKCA BDOBLEKAEAM, Vector3 FHFHOMKFHCI)
{
this.CEKOBOFHIGJ();
if (!this.visibleAfterAttackApplied)
{
this.GLKONHBIDJG.time = 917f;
}
else
{
this.GLKONHBIDJG.time = this.forceAppliedTime;
if (this.fadeOutAfterForceApplied)
{
this.GOEHHHKJPLL(this.forceAppliedFadeOutDuration, this.forceAppliedTime);
}
}
}
// Token: 0x0602199C RID: 137628 RVA: 0x0092EBF8 File Offset: 0x0092CDF8
private IEnumerator KJLEFIDLEKL(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
num = DGIOMJDEEIF;
while (num >= 0f)
{
yield return null;
num -= Time.deltaTime;
num2 = num / DGIOMJDEEIF;
this.GLKONHBIDJG.time = LIHAPNOOGNB * num2;
}
this.GLKONHBIDJG.time = 0f;
this.MGLDIPOANOP = null;
yield break;
}
// Token: 0x0602199D RID: 137629 RVA: 0x0092EC24 File Offset: 0x0092CE24
private void AFHNFAKFPNK(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
this.CEKOBOFHIGJ();
if (this.COMHEONOMBA != null && this.COMHEONOMBA.gameObject.activeSelf)
{
this.MGLDIPOANOP = base.StartCoroutine(this.BKFHBDEIPOA(DGIOMJDEEIF, LIHAPNOOGNB));
}
}
// Token: 0x0602199F RID: 137631 RVA: 0x0092ECDC File Offset: 0x0092CEDC
private void DBBOHNFKCJE(Tool ENBMEDIFBLM)
{
if (!this.visibleUponRelease)
{
this.GLKONHBIDJG.time = 744f;
}
else
{
this.GLKONHBIDJG.time = this.releaseTime;
if (this.fadeOutUponRelease)
{
this.GOEHHHKJPLL(this.releaseFadeOutDuration, this.releaseTime);
}
}
}
// Token: 0x060219A0 RID: 137632 RVA: 0x0092ED38 File Offset: 0x0092CF38
private void HNBLIGEOJOI()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.DBBOHNFKCJE;
this.COMHEONOMBA.GFBCCFIMFEC -= this.DMDOMBBGBGH;
this.COMHEONOMBA.CDDKIBBMALJ -= this.IPCLNKMCDPL;
}
// Token: 0x060219A1 RID: 137633 RVA: 0x0092ED8C File Offset: 0x0092CF8C
private void CADJBBNKFIL()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.DBBOHNFKCJE;
this.COMHEONOMBA.GFBCCFIMFEC -= this.DMDOMBBGBGH;
this.COMHEONOMBA.CDDKIBBMALJ -= this.AGOFPJFKBAD;
}
// Token: 0x060219A2 RID: 137634 RVA: 0x0092EDE0 File Offset: 0x0092CFE0
private IEnumerator BKFHBDEIPOA(float DGIOMJDEEIF, float LIHAPNOOGNB)
{
num = DGIOMJDEEIF;
while (num >= 0f)
{
yield return null;
num -= Time.deltaTime;
num2 = num / DGIOMJDEEIF;
this.GLKONHBIDJG.time = LIHAPNOOGNB * num2;
}
this.GLKONHBIDJG.time = 0f;
this.MGLDIPOANOP = null;
yield break;
}
// Token: 0x060219A3 RID: 137635 RVA: 0x0092EE0C File Offset: 0x0092D00C
private void HECDEJAMFAA()
{
this.CEKOBOFHIGJ();
}
// Token: 0x060219A4 RID: 137636 RVA: 0x0092EE14 File Offset: 0x0092D014
private void JNJDENIGAHH()
{
this.COMHEONOMBA.PLPIAOHJBOB -= this.JOPKIMBMMOM;
this.COMHEONOMBA.GFBCCFIMFEC -= this.DMDOMBBGBGH;
this.COMHEONOMBA.CDDKIBBMALJ -= this.CKOGKPHHMFL;
}
// Token: 0x060219A5 RID: 137637 RVA: 0x0092EE68 File Offset: 0x0092D068
private void OnDisable()
{
this.CEKOBOFHIGJ();
}
// Token: 0x060219A6 RID: 137638 RVA: 0x0092EE70 File Offset: 0x0092D070
private void AGOFPJFKBAD(Tool COMHEONOMBA, Weapon BLBPGNFCBEO, FLDPCEKNKCA BDOBLEKAEAM, Vector3 FHFHOMKFHCI)
{
this.CEKOBOFHIGJ();
if (!this.visibleAfterAttackApplied)
{
this.GLKONHBIDJG.time = 0f;
}
else
{
this.GLKONHBIDJG.time = this.forceAppliedTime;
if (this.fadeOutAfterForceApplied)
{
this.GOEHHHKJPLL(this.forceAppliedFadeOutDuration, this.forceAppliedTime);
}
}
}
// Token: 0x04005742 RID: 22338
[SerializeField]
[Header("Held Trails")]
private bool visibleWhileHeld = true;
// Token: 0x04005743 RID: 22339
[SerializeField]
private float heldTime = 2f;
// Token: 0x04005744 RID: 22340
[SerializeField]
[Header("Release Trails")]
private bool visibleUponRelease = true;
// Token: 0x04005745 RID: 22341
[SerializeField]
private float releaseTime = 2f;
// Token: 0x04005746 RID: 22342
[SerializeField]
private bool fadeOutUponRelease;
// Token: 0x04005747 RID: 22343
[SerializeField]
private float releaseFadeOutDuration = 1f;
// Token: 0x04005748 RID: 22344
[SerializeField]
[FormerlySerializedAs("visibleAfterForceApplied")]
[Header("Force Applied Trails")]
private bool visibleAfterAttackApplied = true;
// Token: 0x04005749 RID: 22345
[SerializeField]
private float forceAppliedTime = 2f;
// Token: 0x0400574A RID: 22346
[SerializeField]
private bool fadeOutAfterForceApplied = true;
// Token: 0x0400574B RID: 22347
[SerializeField]
private float forceAppliedFadeOutDuration = 1f;
// Token: 0x0400574C RID: 22348
private Tool COMHEONOMBA;
// Token: 0x0400574D RID: 22349
private TrailRenderer GLKONHBIDJG;
// Token: 0x0400574E RID: 22350
private Coroutine MGLDIPOANOP;
}