41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020001E6 RID: 486
|
|
[Token(Token = "0x20001E6")]
|
|
public class ScreenShotTool : MonoBehaviour
|
|
{
|
|
// Token: 0x060013D9 RID: 5081 RVA: 0x0002D304 File Offset: 0x0002B504
|
|
[Token(Token = "0x60013D9")]
|
|
[Address(RVA = "0x43A320", Offset = "0x439120", VA = "0x18043A320")]
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDownInt((KeyCode)((uint)278)))
|
|
{
|
|
DateTime now = DateTime.Now;
|
|
string text = string.Format("Nobeta_{0:yyyyMMddHHmmss}.png", now);
|
|
ScreenCapture.CaptureScreenshot(text, 10);
|
|
Debug.Log("Capture: " + text);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060013DA RID: 5082 RVA: 0x0002D34C File Offset: 0x0002B54C
|
|
[Token(Token = "0x60013DA")]
|
|
[Address(RVA = "0x43A230", Offset = "0x439030", VA = "0x18043A230")]
|
|
private void TakeScreenShot()
|
|
{
|
|
DateTime now = DateTime.Now;
|
|
string text = string.Format("Nobeta_{0:yyyyMMddHHmmss}.png", now);
|
|
ScreenCapture.CaptureScreenshot(text, 10);
|
|
Debug.Log("Capture: " + text);
|
|
}
|
|
|
|
// Token: 0x060013DB RID: 5083 RVA: 0x0002D388 File Offset: 0x0002B588
|
|
[Token(Token = "0x60013DB")]
|
|
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
|
|
public ScreenShotTool()
|
|
{
|
|
}
|
|
}
|