228 lines
8.5 KiB
C#
228 lines
8.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020000C8 RID: 200
|
|
[Token(Token = "0x20000C8")]
|
|
[RequireComponent(typeof(Renderer))]
|
|
[StructLayout(3)]
|
|
public class BlinkingRenderer : MonoBehaviour
|
|
{
|
|
// Token: 0x170000C5 RID: 197
|
|
// (get) Token: 0x0600054B RID: 1355 RVA: 0x0001B028 File Offset: 0x00019228
|
|
// (set) Token: 0x0600054C RID: 1356 RVA: 0x0001B03C File Offset: 0x0001923C
|
|
[Token(Token = "0x170000C5")]
|
|
private float FGIDIKMBLCN
|
|
{
|
|
[Token(Token = "0x600054B")]
|
|
[Address(RVA = "0x12005C0", Offset = "0x11FEFC0", VA = "0x1812005C0")]
|
|
get
|
|
{
|
|
return this.MGDBBIKIBGM;
|
|
}
|
|
[Token(Token = "0x600054C")]
|
|
[Address(RVA = "0x12005D0", Offset = "0x11FEFD0", VA = "0x1812005D0")]
|
|
set
|
|
{
|
|
this.MGDBBIKIBGM = value;
|
|
this.IGIODDBOGPK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600054D RID: 1357 RVA: 0x0001B058 File Offset: 0x00019258
|
|
[Token(Token = "0x600054D")]
|
|
[Address(RVA = "0x1200860", Offset = "0x11FF260", VA = "0x181200860")]
|
|
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: 0x0600054E RID: 1358 RVA: 0x0001B14C File Offset: 0x0001934C
|
|
[Token(Token = "0x600054E")]
|
|
[Address(RVA = "0x10B05C0", Offset = "0x10AEFC0", VA = "0x1810B05C0")]
|
|
private void OnDestroy()
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600054F RID: 1359 RVA: 0x0001B174 File Offset: 0x00019374
|
|
[Token(Token = "0x600054F")]
|
|
[Address(RVA = "0x12007C0", Offset = "0x11FF1C0", VA = "0x1812007C0")]
|
|
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: 0x06000550 RID: 1360 RVA: 0x0001B1C8 File Offset: 0x000193C8
|
|
[Token(Token = "0x6000550")]
|
|
[Address(RVA = "0x10B05C0", Offset = "0x10AEFC0", VA = "0x1810B05C0")]
|
|
public void StopBlinking()
|
|
{
|
|
Coroutine ocnbieadcon = this.OCNBIEADCON;
|
|
if (ocnbieadcon != 0)
|
|
{
|
|
base.StopCoroutine(ocnbieadcon);
|
|
this.OCNBIEADCON = (ulong)0L;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000551 RID: 1361 RVA: 0x0001B1F0 File Offset: 0x000193F0
|
|
[Token(Token = "0x6000551")]
|
|
[Address(RVA = "0x1200750", Offset = "0x11FF150", VA = "0x181200750")]
|
|
private IEnumerator NNGFLFAKNJG(float BOEJILHMFBJ)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06000551)
|
|
|
|
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: 0x06000552 RID: 1362 RVA: 0x0001B21C File Offset: 0x0001941C
|
|
[Token(Token = "0x6000552")]
|
|
[Address(RVA = "0x12005F0", Offset = "0x11FEFF0", VA = "0x1812005F0")]
|
|
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: 0x06000553 RID: 1363 RVA: 0x0001B26C File Offset: 0x0001946C
|
|
[Token(Token = "0x6000553")]
|
|
[Address(RVA = "0x1200A90", Offset = "0x11FF490", VA = "0x181200A90")]
|
|
public BlinkingRenderer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000491 RID: 1169
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000491")]
|
|
[SerializeField]
|
|
private RendererMaterialPair[] renderers;
|
|
|
|
// Token: 0x04000492 RID: 1170
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000492")]
|
|
[SerializeField]
|
|
private FloatValueCurve blinkIntensityCurve;
|
|
|
|
// Token: 0x04000493 RID: 1171
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000493")]
|
|
[SerializeField]
|
|
private string colorShaderPropertyName = "_EmissionColor";
|
|
|
|
// Token: 0x04000494 RID: 1172
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000494")]
|
|
[SerializeField]
|
|
[Header("Play On Awake")]
|
|
private bool playOnAwake;
|
|
|
|
// Token: 0x04000495 RID: 1173
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
|
[Token(Token = "0x4000495")]
|
|
[SerializeField]
|
|
private float playOnAwakeFrequency = 3f;
|
|
|
|
// Token: 0x04000496 RID: 1174
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000496")]
|
|
private int FILPJBOBPBG;
|
|
|
|
// Token: 0x04000497 RID: 1175
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000497")]
|
|
private Color[] FFHMFJHBMHG;
|
|
|
|
// Token: 0x04000498 RID: 1176
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000498")]
|
|
private Coroutine OCNBIEADCON;
|
|
|
|
// Token: 0x04000499 RID: 1177
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000499")]
|
|
private float MGDBBIKIBGM = 1f;
|
|
}
|