106 lines
5.0 KiB
C#
106 lines
5.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020003C3 RID: 963
|
|
[Token(Token = "0x20003C3")]
|
|
[StructLayout(3)]
|
|
public class ChildControlManager : SingletonMonoBehaviour<ChildControlManager>
|
|
{
|
|
// Token: 0x06001E2E RID: 7726 RVA: 0x0007F3CC File Offset: 0x0007D5CC
|
|
[Token(Token = "0x6001E2E")]
|
|
[Address(RVA = "0x1B28820", Offset = "0x1B27220", VA = "0x181B28820")]
|
|
public void StartShowSecondScreenWarning()
|
|
{
|
|
Canvas canvas = this.warningCanvas;
|
|
int num = 0;
|
|
if (canvas != num)
|
|
{
|
|
CanvasRenderer canvasRenderer = this.warningElement;
|
|
int num2 = 0;
|
|
if (canvasRenderer != num2)
|
|
{
|
|
ChildControlManager.NPOLKAIFMGD npolkaifmgd;
|
|
npolkaifmgd.System.IDisposable.Dispose();
|
|
npolkaifmgd.<>1__state = (int)((ulong)0L);
|
|
npolkaifmgd.<>4__this = this;
|
|
Coroutine coroutine = base.StartCoroutine(npolkaifmgd);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001E2F RID: 7727 RVA: 0x0007F424 File Offset: 0x0007D624
|
|
[Token(Token = "0x6001E2F")]
|
|
[Address(RVA = "0x1B287C0", Offset = "0x1B271C0", VA = "0x181B287C0")]
|
|
private IEnumerator PGPGNPOGIGD()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001E2F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator ChildControlManager::PGPGNPOGIGD()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(NPOLKAIFMGD::System.IDisposable.Dispose, ldloc:NPOLKAIFMGD(var_0))
|
|
stfld:int32(NPOLKAIFMGD::<>1__state, ldloc:NPOLKAIFMGD(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:ChildControlManager(NPOLKAIFMGD::<>4__this, ldloc:NPOLKAIFMGD(var_0), ldloc:ChildControlManager(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: 0x06001E30 RID: 7728 RVA: 0x0007F448 File Offset: 0x0007D648
|
|
[Token(Token = "0x6001E30")]
|
|
[Address(RVA = "0x1B28910", Offset = "0x1B27310", VA = "0x181B28910")]
|
|
public ChildControlManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001778 RID: 6008
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001778")]
|
|
[SerializeField]
|
|
[Header("Second screen warning")]
|
|
private float timeBeforeFadeIn = 1f;
|
|
|
|
// Token: 0x04001779 RID: 6009
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x4001779")]
|
|
[SerializeField]
|
|
private float fadeInDuration = 0.5f;
|
|
|
|
// Token: 0x0400177A RID: 6010
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400177A")]
|
|
[SerializeField]
|
|
private float visibleDuration = 0.5f;
|
|
|
|
// Token: 0x0400177B RID: 6011
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x400177B")]
|
|
[SerializeField]
|
|
private float fadeOutDuration = 0.5f;
|
|
|
|
// Token: 0x0400177C RID: 6012
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400177C")]
|
|
[SerializeField]
|
|
private Canvas warningCanvas;
|
|
|
|
// Token: 0x0400177D RID: 6013
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400177D")]
|
|
[SerializeField]
|
|
private CanvasRenderer warningElement;
|
|
}
|