104 lines
4.8 KiB
C#
104 lines
4.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020003AF RID: 943
|
|
[Token(Token = "0x20003AF")]
|
|
public class ChildControlManager : SingletonMonoBehaviour<ChildControlManager>
|
|
{
|
|
// Token: 0x06001E4B RID: 7755 RVA: 0x0007CBBC File Offset: 0x0007ADBC
|
|
[Token(Token = "0x6001E4B")]
|
|
[Address(RVA = "0x145B880", Offset = "0x145A680", VA = "0x18145B880")]
|
|
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: 0x06001E4C RID: 7756 RVA: 0x0007CC14 File Offset: 0x0007AE14
|
|
[Token(Token = "0x6001E4C")]
|
|
[Address(RVA = "0x145B820", Offset = "0x145A620", VA = "0x18145B820")]
|
|
private IEnumerator PGPGNPOGIGD()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06001E4C)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06001E4D RID: 7757 RVA: 0x0007CC38 File Offset: 0x0007AE38
|
|
[Token(Token = "0x6001E4D")]
|
|
[Address(RVA = "0x145B970", Offset = "0x145A770", VA = "0x18145B970")]
|
|
public ChildControlManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040016F0 RID: 5872
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40016F0")]
|
|
[SerializeField]
|
|
[Header("Second screen warning")]
|
|
private float timeBeforeFadeIn = 1f;
|
|
|
|
// Token: 0x040016F1 RID: 5873
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x40016F1")]
|
|
[SerializeField]
|
|
private float fadeInDuration = 0.5f;
|
|
|
|
// Token: 0x040016F2 RID: 5874
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40016F2")]
|
|
[SerializeField]
|
|
private float visibleDuration = 0.5f;
|
|
|
|
// Token: 0x040016F3 RID: 5875
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x40016F3")]
|
|
[SerializeField]
|
|
private float fadeOutDuration = 0.5f;
|
|
|
|
// Token: 0x040016F4 RID: 5876
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40016F4")]
|
|
[SerializeField]
|
|
private Canvas warningCanvas;
|
|
|
|
// Token: 0x040016F5 RID: 5877
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40016F5")]
|
|
[SerializeField]
|
|
private CanvasRenderer warningElement;
|
|
}
|