From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Client/Assembly-CSharp/VersionShower.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Client/Assembly-CSharp/VersionShower.cs (limited to 'Client/Assembly-CSharp/VersionShower.cs') diff --git a/Client/Assembly-CSharp/VersionShower.cs b/Client/Assembly-CSharp/VersionShower.cs new file mode 100644 index 0000000..8c87390 --- /dev/null +++ b/Client/Assembly-CSharp/VersionShower.cs @@ -0,0 +1,19 @@ +using System; +using UnityEngine; + +public class VersionShower : MonoBehaviour +{ + public TextRenderer text; + + public void Start() + { + string str = "v" + Application.version; + str += "s"; + if (!DetectTamper.Detect()) + { + str += "h"; + } + this.text.Text = str; + Screen.sleepTimeout = -1; + } +} -- cgit v1.1-26-g67d0