public void Update() { if (Event.current.shift && Input.GetKeyDown(KeyCode.L)) { Exploits.TriggerIndexOutOfRange(); } }
private void jesusBtn_OnChange(object sender, EventArgs e) { if (jesusCheck.Checked) { Exploits.Jesus(); } else { } }
public void LoadCloneButton() { void CreateButtons(GameObject go = null) { Transform parent = GameObject.Find("UserInteractMenu").transform; if (PlayerReflections.GetApiAvatar(selectedPlayer).releaseStatus == "public") { if (go != null) { cloneButton = GameObject.Instantiate(go, go.transform.position, default(Quaternion), parent); } cloneButton.GetComponent <Button>().colors = Functions.SetThemeColor(cloneButton.GetComponent <Button>().colors); cloneButton.SetActive(true); cloneButton.GetComponentInChildren <Text>().text = "Yoink"; //disable persistent button cloneButton.GetComponent <Button>().onClick.SetPersistentListenerState(0, UnityEngine.Events.UnityEventCallState.Off); cloneButton.GetComponent <Button>().onClick.RemoveAllListeners(); cloneButton.GetComponent <Button>().onClick.AddListener(delegate() { Exploits.LoadAvatarFromId(PlayerReflections.GetApiAvatar(selectedPlayer).id); }); cloneButton.GetComponent <Button>().interactable = true; } else { if (go != null) { cloneButton = GameObject.Instantiate(go, go.transform.position, default(Quaternion), parent); } cloneButton.SetActive(true); cloneButton.GetComponentInChildren <Text>().text = "PRIVATE"; cloneButton.GetComponent <Button>().onClick.RemoveAllListeners(); cloneButton.GetComponent <Button>().interactable = false; } } if (cloneButton == null) { CreateButtons(GameObject.Find("UserInteractMenu").transform.Find("ForceLogoutButton").gameObject); cloneButton.transform.localPosition = cloneButton.transform.localPosition + new Vector3(840, 0); } if (cloneButton != null) { CreateButtons(); } }
private static void LoadExploits() { _exploits = new List <Module>(); var currentPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Exploits"); var allAssemblies = Directory.GetFiles(currentPath, "*.dll").Select(Assembly.LoadFile); foreach (var assembly in allAssemblies) { Exploits.AddRange(from t in assembly.GetTypes() where t.BaseType == typeof(Module) && t.GetConstructor(Type.EmptyTypes) != null select(Module) Activator.CreateInstance(t)); } }
public void LoadLogoutButton() { if (logoutButton == null) { GameObject original = GameObject.Find("UserInteractMenu").transform.Find("ForceLogoutButton").gameObject; Transform parent = GameObject.Find("UserInteractMenu").transform; //instantiate the original button to new object logoutButton = GameObject.Instantiate(original, original.transform.position, default(Quaternion), parent); logoutButton.GetComponent <Button>().colors = Functions.SetThemeColor(logoutButton.GetComponent <Button>().colors); logoutButton.SetActive(true); logoutButton.GetComponentInChildren <Text>().text = "Logout"; //disable persistent button logoutButton.GetComponent <Button>().onClick.SetPersistentListenerState(0, UnityEngine.Events.UnityEventCallState.Off); logoutButton.GetComponent <Button>().onClick.RemoveAllListeners(); logoutButton.GetComponent <Button>().onClick.AddListener(delegate() { Exploits.FakeLogout(selectedPlayer); }); } }