Skip to content

Instantly share code, notes, and snippets.

@ThiagoLira
Created January 18, 2022 17:29
Show Gist options
  • Select an option

  • Save ThiagoLira/7509c5800e1176c0e2aa189ae36e4a86 to your computer and use it in GitHub Desktop.

Select an option

Save ThiagoLira/7509c5800e1176c0e2aa189ae36e4a86 to your computer and use it in GitHub Desktop.

Revisions

  1. ThiagoLira created this gist Jan 18, 2022.
    9 changes: 9 additions & 0 deletions state.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    // 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();