226 lines
8.3 KiB
C#
226 lines
8.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000A6 RID: 166
|
|
[Token(Token = "0x20000A6")]
|
|
[RequireComponent(typeof(Renderer))]
|
|
public class BlinkingRenderer : MonoBehaviour
|
|
{
|
|
// Token: 0x170000A9 RID: 169
|
|
// (get) Token: 0x0600045D RID: 1117 RVA: 0x00017564 File Offset: 0x00015764
|
|
// (set) Token: 0x0600045E RID: 1118 RVA: 0x00017578 File Offset: 0x00015778
|
|
[Token(Token = "0x170000A9")]
|
|
private float FGIDIKMBLCN
|
|
{
|
|
[Token(Token = "0x600045D")]
|
|
[Address(RVA = "0x8148D0", Offset = "0x8138D0", VA = "0x1808148D0")]
|
|
get
|
|
{
|
|
return this.MGDBBIKIBGM;
|
|
}
|
|
[Token(Token = "0x600045E")]
|
|
[Address(RVA = "0x14FFD20", Offset = "0x14FED20", VA = "0x1814FFD20")]
|
|
set
|
|
{
|
|
this.MGDBBIKIBGM = value;
|
|
this.IGIODDBOGPK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600045F RID: 1119 RVA: 0x00017594 File Offset: 0x00015794
|
|
[Token(Token = "0x600045F")]
|
|
[Address(RVA = "0x14FFFB0", Offset = "0x14FEFB0", VA = "0x1814FFFB0")]
|
|
private void Start()
|
|
{
|
|
int num = Shader.PropertyToID(this.colorShaderPropertyName);
|
|
this.FILPJBOBPBG = num;
|
|
RendererMaterialPair[] array = this.renderers;
|
|
if (array == 0 || array.Length == 0)
|
|
{
|
|
Debug.LogError(base.name + " Blinking Renderer is missing renderers.");
|
|
}
|
|
Color[] array2 = new Color[array.Length];
|
|
int num2 = 0;
|
|
this.FFHMFJHBMHG = array2;
|
|
int num3 = 0;
|
|
if (num2 < array2.Length)
|
|
{
|
|
RendererMaterialPair[] array3 = this.renderers;
|
|
num3++;
|
|
Color[] ffhmfjhbmhg = this.FFHMFJHBMHG;
|
|
}
|
|
this.IGIODDBOGPK();
|
|
if (this.playOnAwake)
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
float num4 = this.playOnAwakeFrequency;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
BlinkingRenderer.BGLAILGEJHL bglailgejhl;
|
|
bglailgejhl.System.IDisposable.Dispose();
|
|
bglailgejhl.frequency = num4;
|
|
bglailgejhl.<>1__state = (int)((ulong)0L);
|
|
bglailgejhl.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(bglailgejhl);
|
|
this.OCNBIEADCON = coroutine;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000460 RID: 1120 RVA: 0x00017688 File Offset: 0x00015888
|
|
[Token(Token = "0x6000460")]
|
|
[Address(RVA = "0x13A7320", Offset = "0x13A6320", VA = "0x1813A7320")]
|
|
private void OnDestroy()
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000461 RID: 1121 RVA: 0x000176B0 File Offset: 0x000158B0
|
|
[Token(Token = "0x6000461")]
|
|
[Address(RVA = "0x14FFF10", Offset = "0x14FEF10", VA = "0x1814FFF10")]
|
|
public void StartBlinking(float BOEJILHMFBJ)
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
BlinkingRenderer.BGLAILGEJHL bglailgejhl;
|
|
bglailgejhl.System.IDisposable.Dispose();
|
|
bglailgejhl.frequency = BOEJILHMFBJ;
|
|
bglailgejhl.<>1__state = (int)((ulong)0L);
|
|
bglailgejhl.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(bglailgejhl);
|
|
this.OCNBIEADCON = coroutine;
|
|
}
|
|
|
|
// Token: 0x06000462 RID: 1122 RVA: 0x00017704 File Offset: 0x00015904
|
|
[Token(Token = "0x6000462")]
|
|
[Address(RVA = "0x13A7320", Offset = "0x13A6320", VA = "0x1813A7320")]
|
|
public void StopBlinking()
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000463 RID: 1123 RVA: 0x0001772C File Offset: 0x0001592C
|
|
[Token(Token = "0x6000463")]
|
|
[Address(RVA = "0x14FFEA0", Offset = "0x14FEEA0", VA = "0x1814FFEA0")]
|
|
private IEnumerator NNGFLFAKNJG(float BOEJILHMFBJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000463)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator BlinkingRenderer::NNGFLFAKNJG(System.Single)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(BGLAILGEJHL::System.IDisposable.Dispose, ldloc:BGLAILGEJHL(var_0))
|
|
stfld:float32(BGLAILGEJHL::frequency, ldloc:BGLAILGEJHL(var_0), ldloc:float32(BOEJILHMFBJ))
|
|
stfld:int32(BGLAILGEJHL::<>1__state, ldloc:BGLAILGEJHL(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:BlinkingRenderer(BGLAILGEJHL::<>4__this, ldloc:BGLAILGEJHL(var_0), ldloc:BlinkingRenderer(this))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06000464 RID: 1124 RVA: 0x00017758 File Offset: 0x00015958
|
|
[Token(Token = "0x6000464")]
|
|
[Address(RVA = "0x14FFD40", Offset = "0x14FED40", VA = "0x1814FFD40")]
|
|
private void IGIODDBOGPK()
|
|
{
|
|
RendererMaterialPair[] array = this.renderers;
|
|
if (array != 0 && this.FFHMFJHBMHG != (ulong)0L)
|
|
{
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
Color black = Color.black;
|
|
Color[] ffhmfjhbmhg = this.FFHMFJHBMHG;
|
|
RendererMaterialPair[] array2 = this.renderers;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000465 RID: 1125 RVA: 0x000177A8 File Offset: 0x000159A8
|
|
[Token(Token = "0x6000465")]
|
|
[Address(RVA = "0x15001E0", Offset = "0x14FF1E0", VA = "0x1815001E0")]
|
|
public BlinkingRenderer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040003AB RID: 939
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40003AB")]
|
|
[SerializeField]
|
|
private RendererMaterialPair[] renderers;
|
|
|
|
// Token: 0x040003AC RID: 940
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40003AC")]
|
|
[SerializeField]
|
|
private FloatValueCurve blinkIntensityCurve;
|
|
|
|
// Token: 0x040003AD RID: 941
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40003AD")]
|
|
[SerializeField]
|
|
private string colorShaderPropertyName = "_EmissionColor";
|
|
|
|
// Token: 0x040003AE RID: 942
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40003AE")]
|
|
[SerializeField]
|
|
[Header("Play On Awake")]
|
|
private bool playOnAwake;
|
|
|
|
// Token: 0x040003AF RID: 943
|
|
[FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x40003AF")]
|
|
[SerializeField]
|
|
private float playOnAwakeFrequency = 3f;
|
|
|
|
// Token: 0x040003B0 RID: 944
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40003B0")]
|
|
private int FILPJBOBPBG;
|
|
|
|
// Token: 0x040003B1 RID: 945
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40003B1")]
|
|
private Color[] FFHMFJHBMHG;
|
|
|
|
// Token: 0x040003B2 RID: 946
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40003B2")]
|
|
private Coroutine OCNBIEADCON;
|
|
|
|
// Token: 0x040003B3 RID: 947
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40003B3")]
|
|
private float MGDBBIKIBGM = 1f;
|
|
}
|