Hello everybody! So it has come to my attention that whenever I attempt to inject any of my "test"" dll cheats into unturned through Unity Hacking Suite my game seems to crash. I have two images here that have a slight difference.
https://imgur.com/vHLAPK0 - Doesn't Get "Payload".
https://imgur.com/rl6ovDp - "Got payload" then successfully "delivered the payload".
Alright so now we get to the coding part. I have some random code from the "Unity Legacy GUI Scripting Guide" that i have here as an example. I added the following as references: Assembly-CSharp.dll, UnityEngine.dll, Assembly-CSharp-firstpass.dll and Assembly-UnityScript-firstpass.dll.
Code:
using UnityEngine;
using System.Collections;
public class GUITest : MonoBehaviour
{
void OnGUI()
{
GUI.Label(new Rect(0, 0, 100, 50), "This is the text string for a Label Control");
}
}
I have no idea what is causing this, unless i need to "attach" it to GameObject. Stated on the manual that i have got this code from. Could someone please reply with this or even different corrected code. Perhaps a tutorial on how to attach it? Also what does "entrypoint" mean?