diff options
author | chai <chaifix@163.com> | 2020-12-30 20:59:04 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-12-30 20:59:04 +0800 |
commit | e9ea621b93fbb58d9edfca8375918791637bbd52 (patch) | |
tree | 19ce3b1c1f2d51eda6878c9d0f2c9edc27f13650 /Client/Assembly-CSharp/ResSetter.cs |
+init
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)); + } + } +} |