Skip to content

Instantly share code, notes, and snippets.

@ThiagoLira
Created January 18, 2022 17:29
Show Gist options
  • Save ThiagoLira/7509c5800e1176c0e2aa189ae36e4a86 to your computer and use it in GitHub Desktop.
Save ThiagoLira/7509c5800e1176c0e2aa189ae36e4a86 to your computer and use it in GitHub Desktop.
// Update State
// hook position
bobberBarPos = Helper.Reflection.GetField<float>(bar, "bobberBarPos").GetValue();
// fish position
bobberPosition = Helper.Reflection.GetField<float>(bar, "bobberPosition").GetValue();
// hook speed
bobberBarSpeed = Helper.Reflection.GetField<float>(bar, "bobberBarSpeed").GetValue();
// amount of green bar filled
distanceFromCatching = Helper.Reflection.GetField<float>(bar, "distanceFromCatching").GetValue();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment