From 2f746c8e108e86fe6b31a5ec5c2081847133eead Mon Sep 17 00:00:00 2001 From: Jenny Crowe Date: Fri, 11 Mar 2022 21:20:33 -0700 Subject: [PATCH] Fork Lifter: Minor script tweak for readability. --- Assets/Scripts/Games/ForkLifter/ForkLifter.cs | 1 + Assets/Scripts/Minigames.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/ForkLifter/ForkLifter.cs b/Assets/Scripts/Games/ForkLifter/ForkLifter.cs index ec801cfa..bf7accc9 100644 --- a/Assets/Scripts/Games/ForkLifter/ForkLifter.cs +++ b/Assets/Scripts/Games/ForkLifter/ForkLifter.cs @@ -22,6 +22,7 @@ namespace RhythmHeavenMania.Games } public static ForkLifter instance; + public static ForkLifterPlayer playerInstance => ForkLifterPlayer.instance; [Header("References")] public ForkLifterHand ForkLifterHand; diff --git a/Assets/Scripts/Minigames.cs b/Assets/Scripts/Minigames.cs index 10e3f63d..bc1bb47e 100644 --- a/Assets/Scripts/Minigames.cs +++ b/Assets/Scripts/Minigames.cs @@ -172,7 +172,7 @@ namespace RhythmHeavenMania new Param("type", ForkLifter.FlickType.Pea, "Object", "The object to be flicked") }), new GameAction("prepare", delegate { ForkLifter.instance.ForkLifterHand.Prepare(); }, 0.5f), - new GameAction("gulp", delegate { Games.Scripts_ForkLifter.ForkLifterPlayer.instance.Eat(); }), + new GameAction("gulp", delegate { ForkLifter.playerInstance.Eat(); }), new GameAction("sigh", delegate { Jukebox.PlayOneShot("games/forkLifter/sigh"); }), // These are still here for backwards-compatibility but are hidden in the editor new GameAction("pea", delegate { ForkLifter.instance.Flick(eventCaller.currentEntity.beat, 0); }, 3, hidden: true),