diff options
Diffstat (limited to 'Client/Assembly-CSharp/ResSetter.cs')
-rw-r--r-- | Client/Assembly-CSharp/ResSetter.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/ResSetter.cs b/Client/Assembly-CSharp/ResSetter.cs new file mode 100644 index 0000000..d1632cf --- /dev/null +++ b/Client/Assembly-CSharp/ResSetter.cs @@ -0,0 +1,29 @@ +using System; +using System.IO; +using UnityEngine; + +public class ResSetter : MonoBehaviour +{ + public int Width = 1438; + + public int Height = 810; + + private int cnt; + + public void Start() + { + Screen.SetResolution(this.Width, this.Height, false); + } + + public void Update() + { + if (Input.GetKeyDown(KeyCode.S)) + { + Directory.CreateDirectory("C:\\AmongUsSS"); + string format = "C:\\AmongUsSS\\Screenshot-{0}.png"; + int num = this.cnt; + this.cnt = num + 1; + ScreenCapture.CaptureScreenshot(string.Format(format, num)); + } + } +} |