Mono injection guide
using UnityEngine
namespace Gamename_Hack
{
public class Loader
{
public static void Init()
{
_Load = new GameObject();
_Load.AddComponent<Main>();
GameObject.DontDestroyOnLoad(_Load);
}
public static void Unload()
{
_Unload();
}
private static void _Unload()
{
GameObject.Destroy(_Load);
}
private GameObject _gameObject;
}
}
------------------------------------------------------
using UnityEngine
namespace Gamename_Hack
{
class Main : MonoBehaviour
{
public void Start()
{
_Player = FindObjectOfType<Player>();
}
public void Update()
{
if(Input.GetKeyDown(KeyCode.U))
{
_player.upgradeHealth();
}
if(Input.GetKeyDown(KeyCode.Delete)) // Will just unload our DLL
{
Loader.Unload();
}
}
public void OnGUI()
{
GUI.Label(new Rect(Screen.width / 2, Screen.height / 2, 150f, 50f), "GAME INJECTED"); // Should work and when injected you will see this text in the middle of the screen
}
private Player _player;
}
}