You could use this, just import it to your project
UnityStuff-1/Unity.h at master · Karveit/UnityStuff-1 · GitHub
example hooking using monoArray
let's take yours as example
in dump
int[] stats; //0x30
hooking would be like this
void (*old_update)(void *instance);
void update(void *instance) {
if (instance!= NULL) {
monoArray<int> *
stats = *(monoArray<int> **) ((uint64_t) instance + 0x30);
if (
stats != NULL) {
for (int i = 0; i < stats->getLength(); i++) {
auto
stat = stats->getPointer()
; //THIS IS THE STATS
}
}
}
old_update(instance);
}