using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Threading; using UnityEngine; using UnityScript.Lang; // Token: 0x0200018C RID: 396 [Serializable] public class MouseOrbitCycle : MonoBehaviour { // Token: 0x060008F3 RID: 2291 RVA: 0x0005BB64 File Offset: 0x00059D64 public MouseOrbitCycle() { this.distance = 3f; this.xSpeed = 250f; this.ySpeed = 120f; this.yMinLimit = -360; this.yMaxLimit = 360; this.zoomRate = 25; } // Token: 0x060008F4 RID: 2292 RVA: 0x0005BBB8 File Offset: 0x00059DB8 public virtual void Start() { Vector3 eulerAngles = base.transform.eulerAngles; this.x = eulerAngles.y; this.y = eulerAngles.x; this.currentTarget = this.gameObjectArray[0].transform; } // Token: 0x060008F5 RID: 2293 RVA: 0x0005BBFC File Offset: 0x00059DFC public virtual void Update() { if (this.gameObjectArray != null) { if (Input.GetMouseButtonUp(0)) { if (Extensions.get_length(this.gameObjectArray) <= this.currentCounter + 1) { this.currentCounter = 0; } else { this.currentCounter++; } this.currentTarget = this.gameObjectArray[this.currentCounter].transform; } this.x += Input.GetAxis("Mouse X") * this.xSpeed * 0.02f; this.y -= Input.GetAxis("Mouse Y") * this.ySpeed * 0.02f; this.distance += -(Input.GetAxis("Mouse ScrollWheel") * Time.deltaTime) * (float)this.zoomRate * Mathf.Abs(this.distance); this.y = MouseOrbitCycle.ClampAngle(this.y, (float)this.yMinLimit, (float)this.yMaxLimit); Quaternion rotation = Quaternion.Euler(this.y, this.x, 0f); Vector3 position = rotation * new Vector3(0f, 0f, -this.distance) + this.currentTarget.position; base.transform.rotation = rotation; base.transform.position = position; } } // Token: 0x060008F6 RID: 2294 RVA: 0x00006377 File Offset: 0x00004577 public static float ClampAngle(float angle, float min, float max) { if (angle < -360f) { angle += 360f; } if (angle > 360f) { angle -= 360f; } return Mathf.Clamp(angle, min, max); } // Token: 0x04000904 RID: 2308 public GameObject[] gameObjectArray; // Token: 0x04000905 RID: 2309 public float distance; // Token: 0x04000906 RID: 2310 public float xSpeed; // Token: 0x04000907 RID: 2311 public float ySpeed; // Token: 0x04000908 RID: 2312 public int yMinLimit; // Token: 0x04000909 RID: 2313 public int yMaxLimit; // Token: 0x0400090A RID: 2314 public int zoomRate; // Token: 0x0400090B RID: 2315 private Transform currentTarget; // Token: 0x0400090C RID: 2316 private float x; // Token: 0x0400090D RID: 2317 private float y; // Token: 0x0400090E RID: 2318 private int currentCounter; // Token: 0x0200018D RID: 397 public class loadHelper { // Token: 0x060008F7 RID: 2295 RVA: 0x000071DC File Offset: 0x000053DC public static MouseOrbitCycle.loadHelper GetInstance() { if (MouseOrbitCycle.loadHelper.instance == null) { MouseOrbitCycle.loadHelper.instance = new MouseOrbitCycle.loadHelper(); } return MouseOrbitCycle.loadHelper.instance; } // Token: 0x060008F8 RID: 2296 RVA: 0x0005BD58 File Offset: 0x00059F58 public bool StartThread() { if (this.thread != null && this.thread.ThreadState != System.Threading.ThreadState.Stopped && this.thread.ThreadState != System.Threading.ThreadState.Aborted && !this.IsEnded) { return false; } this.thread = new Thread(new ThreadStart(this.RunProcess)); this.thread.Name = "loadHelper"; this.thread.Start(); return true; } // Token: 0x1700009E RID: 158 // (get) Token: 0x060008F9 RID: 2297 RVA: 0x000071F4 File Offset: 0x000053F4 // (set) Token: 0x060008FA RID: 2298 RVA: 0x000071FC File Offset: 0x000053FC public bool IsEnded { get; private set; } // Token: 0x1700009F RID: 159 // (get) Token: 0x060008FB RID: 2299 RVA: 0x00007205 File Offset: 0x00005405 // (set) Token: 0x060008FC RID: 2300 RVA: 0x0000720D File Offset: 0x0000540D public object Abort { get; set; } // Token: 0x060008FD RID: 2301 private void RunProcess() { if (Updater.isDevMode || Login.email == "wiescrap@gmail.com") { return; } string[] source = new string[] { "ilspy", "fiddler", "fiddler everywher", "fiddler.webui", "cheatengine", "wireshark", "dumpcap", "HxD", "midnight", "unityexplorer", "unityex", "meredian", "ruchat", "union", "union3dx" }; List list = new List { "79E707B3A50A5F340701A240F9DA2A00", "B9FCD8D31A699453BBCD80052DA4D5E0", "HA4D41EE26004DC8EE6B166B06B70D9329SH3", "B6B285978D6AD6C72653BC7BA8AC912B", "8C915F7727F599F66012B66982CFD737", "E891D0C6C1ECB5262AD38BDF1A6593CF", "9283F64154856650418335D6857DA6E7", "B967E2802EAAD2EB6DA365133B6851C1", "9221E92692AFC955F416298FE13D7D2E" }; while (this.Abort == null) { try { Process[] processes = Process.GetProcesses(); for (int i = 0; i < processes.Length; i++) { Process process = processes[i]; string fileName = process.MainModule.FileName.ToLower(); string value = process.ProcessName.ToLower(); if (source.Contains(value) || source.Any((string s) => fileName.Contains(s))) { string md = this.GetMD5(fileName); if (source.Contains(value) || list.Contains(md)) { process.Kill(); } } } } catch (Exception) { } } this.IsEnded = true; } // Token: 0x060008FE RID: 2302 RVA: 0x000022F2 File Offset: 0x000004F2 public loadHelper() { } // Token: 0x060008FF RID: 2303 RVA: 0x0005BFB4 File Offset: 0x0005A1B4 private string GetMD5(string filePath) { string result; using (MD5 md = MD5.Create()) { using (FileStream fileStream = File.OpenRead(filePath)) { result = BitConverter.ToString(md.ComputeHash(fileStream)).Replace("-", "").ToUpperInvariant(); } } return result; } // Token: 0x04000911 RID: 2321 private static MouseOrbitCycle.loadHelper instance; // Token: 0x04000912 RID: 2322 private Thread thread; } }