1) Download Visual Studio
2) Make a new class
3) Bare minimum, put this stuff in there
4) Get JustDecompile with "Assembly Editor" plugin (free) or .NET Reflector with Reflexil
5) Open RoK's Assembly-CSharp.dll
6) Find a point in the code that you want to hook, and (using reflexil) right click -> add operation -> call method reference -> find method in your compiled class.
7) Save dll and run game
8) Have fun
I use Game's static constructor because it is only called once.
Load GameObject with: (credits to someone somewhere)
Code:
public static void Load()
{
GameObject gameObject = new GameObject();
gameObject.AddComponent<CustomControl>();
Object.DontDestroyOnLoad(gameObject);
}
CustomControl class
Code:
internal class CustomControl : MonoBehaviour
{
private void Start()
{
// initialize variables here
// this is where I populate my menu
}
private void Update()
{
// called every frame (I think)
}
private void OnGUI()
{
if (Game.State == GameState.Playing)
{
if (GUIManager.CurrentCategory != GUIManager.MenuSystemCategories.System)
{
// currently playing, do hacks
}
else
{
// in pause/system menu, show menu
// here you could use a unity button that, when pressed, calls code posted earlier
}
}
}
}
I was in the same position as most of you when I started. I didn't have any clue of what to do, and I was stuck with public hacks and elitist users running their mouths about how they "did that sooooo long ago" or "already have ESP 2.0 max". I'm trying not to be like them, but I don't really want to release a compiled version because all the lazy noobs will use it as well. With the info in this post you should be up and running in no time. It's for pretty much any Unity game, the hardest part is hooking your DLL
See showthread.php?t=846668
showthread.php?t=841892
showthread.php?t=846210
different game but it will all be similar because it's all Unity