41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000223 RID: 547
|
|
[Token(Token = "0x2000223")]
|
|
public class ScreenShotTool : MonoBehaviour
|
|
{
|
|
// Token: 0x0600158E RID: 5518 RVA: 0x00030BA8 File Offset: 0x0002EDA8
|
|
[Token(Token = "0x600158E")]
|
|
[Address(RVA = "0x514810", Offset = "0x513810", VA = "0x180514810")]
|
|
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: 0x0600158F RID: 5519 RVA: 0x00030BF0 File Offset: 0x0002EDF0
|
|
[Token(Token = "0x600158F")]
|
|
[Address(RVA = "0x514720", Offset = "0x513720", VA = "0x180514720")]
|
|
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: 0x06001590 RID: 5520 RVA: 0x00030C2C File Offset: 0x0002EE2C
|
|
[Token(Token = "0x6001590")]
|
|
[Address(RVA = "0x328C40", Offset = "0x327C40", VA = "0x180328C40")]
|
|
public ScreenShotTool()
|
|
{
|
|
}
|
|
}
|