Skip to content

Commit 3fc88f1

Browse files
authored
refactor: remove unnecessary code for v1.20B (#8)
Co-authored-by: Emmett <a>
1 parent e0b6e42 commit 3fc88f1

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

AutoToot/Patches/PointSceneControllerPatch.cs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,11 @@ static void Postfix(PointSceneController __instance)
7676
coin.SetActive(false);
7777
}
7878

79-
GameObject tootsObject = GameObject.Find(TootsTextPath);
80-
if (tootsObject == null)
81-
{
82-
Plugin.Logger.LogError("Unable to find toots text, AutoToot indicator will not be present.");
83-
}
84-
else
85-
{
86-
__instance.tootstext.text = "AutoTooted Play";
87-
88-
Vector3 textPosition = tootsObject.transform.position;
89-
textPosition.x = TootsTextXPosition;
90-
tootsObject.transform.position = textPosition;
91-
}
92-
79+
__instance.tootstext.text = "AutoTooted Play";
80+
9381
__instance.Invoke(nameof(PointSceneController.showContinue), 0.75f);
9482
}
9583

9684
private const string CoinPath = "Canvas/buttons/coingroup/coin";
97-
private const string TootsTextPath = "Canvas/buttons/coingroup/Text";
9885
private const float TootsTextXPosition = -0.246f;
99-
}
86+
}

0 commit comments

Comments
 (0)