Originally Posted by
EazzyKilla
My game is crashing when i inject my test hack. I just made it and im new to this can someone take a look?
Code:
public class Hacks : MonoBehaviour
{
Boolean gui;
void Start()
{
gui = false;
}
void Update()
{
if (Input.GetKeyDown(KeyCode.E))
{
this.gui = !this.gui;
}
}
void OnGUI()
{
if (gui)
{
GUI.Box(new Rect(10, 10, 100, 90), "Hack Menu");
if (GUI.Button(new Rect(20, 40, 80, 20), "Rs Items"))
{
SpawnItems.reset();
}
if (GUI.Button(new Rect(20, 70, 80, 20), "Null"))
{
}
}
}
}
I built it and it came up with no problems. If you can help me add me on skype :3 Skype: ๖ۣۜEazzy or xXEazzyKillaXx