Files
NobetaSource/Cpp2IL/Assembly-CSharp/commanastationwww/eternaltemple/HideGroup.cs
2023-09-06 22:09:22 +02:00

131 lines
3.8 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace commanastationwww.eternaltemple
{
// Token: 0x0200058F RID: 1423
[Token(Token = "0x200058F")]
public class HideGroup : MonoBehaviour
{
// Token: 0x06002E9A RID: 11930 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002E9A")]
[Address(RVA = "0x11DFB20", Offset = "0x11DE320", VA = "0x1811DFB20")]
private void Start()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002E9B RID: 11931 RVA: 0x0006316C File Offset: 0x0006136C
[Token(Token = "0x6002E9B")]
[Address(RVA = "0x11DF7B0", Offset = "0x11DDFB0", VA = "0x1811DF7B0")]
private void OnTriggerEnter(Collider other)
{
if (this.hidable && string.Equals(other.gameObject.tag, "MainCamera"))
{
int num = 0;
HidablePart[] array = this.hidableGroup;
int length = array.Length;
if (num < length)
{
HidablePart hidablePart = array[num];
hidablePart.StopAllCoroutines();
int num2;
HidablePart.<hideInterpolation>d__9 <hideInterpolation>d__ = new HidablePart.<hideInterpolation>d__9(num2);
num2 = 0;
<hideInterpolation>d__.<>4__this = hidablePart;
Coroutine coroutine = hidablePart.StartCoroutine(<hideInterpolation>d__);
num++;
}
ParticleSystem[] array2 = this.particlesGroup;
int length2 = array2.Length;
if (num < length2)
{
array2[num].Stop();
num++;
}
}
}
// Token: 0x06002E9C RID: 11932 RVA: 0x00063210 File Offset: 0x00061410
[Token(Token = "0x6002E9C")]
[Address(RVA = "0x11DF960", Offset = "0x11DE160", VA = "0x1811DF960")]
private void OnTriggerExit(Collider other)
{
if (this.hidable && string.Equals(other.gameObject.tag, "MainCamera"))
{
HidablePart[] array = this.hidableGroup;
int num = 0;
int num2 = 0;
int length = array.Length;
if (num2 < length)
{
HidablePart hidablePart = array[num];
hidablePart.StopAllCoroutines();
int num3;
HidablePart.<unhideInterpolation>d__8 <unhideInterpolation>d__ = new HidablePart.<unhideInterpolation>d__8(num3);
num3 = 0;
<unhideInterpolation>d__.<>4__this = hidablePart;
Coroutine coroutine = hidablePart.StartCoroutine(<unhideInterpolation>d__);
num++;
}
ParticleSystem[] array2 = this.particlesGroup;
int num4 = 0;
int num5 = 0;
int length2 = array2.Length;
if (num5 < length2)
{
array2[num4].Play();
num4++;
}
this.collisionEntriesCounter = (int)((ulong)0L);
}
}
// Token: 0x06002E9D RID: 11933 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002E9D")]
[Address(RVA = "0x29E8B0", Offset = "0x29D0B0", VA = "0x18029E8B0")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002E9E RID: 11934 RVA: 0x000632D0 File Offset: 0x000614D0
[Token(Token = "0x6002E9E")]
[Address(RVA = "0x11DFC50", Offset = "0x11DE450", VA = "0x1811DFC50")]
public HideGroup()
{
}
// Token: 0x04003783 RID: 14211
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4003783")]
public bool hidable = true;
// Token: 0x04003784 RID: 14212
[FieldOffset(Offset = "0x19")]
[Token(Token = "0x4003784")]
public bool disableParentGeo;
// Token: 0x04003785 RID: 14213
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4003785")]
private int collisionEntriesCounter;
// Token: 0x04003786 RID: 14214
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4003786")]
private HidablePart[] hidableGroup;
// Token: 0x04003787 RID: 14215
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4003787")]
private ParticleSystem[] particlesGroup;
// Token: 0x04003788 RID: 14216
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4003788")]
private Renderer rendererComponent;
}
}