From 2c7472c9d084b819e0a035223db200447e31181f Mon Sep 17 00:00:00 2001 From: DPS2004 <10176105+DPS2004@users.noreply.github.com> Date: Sun, 4 Sep 2022 13:23:43 -0400 Subject: [PATCH] update tunnel to use new minigame format --- Assets/Scripts/Games/Tunnel/Tunnel.cs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/Games/Tunnel/Tunnel.cs b/Assets/Scripts/Games/Tunnel/Tunnel.cs index 931f01217..4871881a1 100644 --- a/Assets/Scripts/Games/Tunnel/Tunnel.cs +++ b/Assets/Scripts/Games/Tunnel/Tunnel.cs @@ -16,13 +16,23 @@ namespace HeavenStudio.Games.Loaders { - new GameAction("Cowbell", delegate { Tunnel.instance.StartCowbell(eventCaller.currentEntity.beat, eventCaller.currentEntity.toggle, eventCaller.currentEntity.length); }, 1f, true, parameters: new List() + new GameAction("cowbell", "Cowbell") { - new Param("toggle", false, "Driver can stop", "Lets the driver stop if the player makes too many mistakes"), - }), - - new GameAction("Count In", delegate { Tunnel.instance.CountIn(eventCaller.currentEntity.beat, eventCaller.currentEntity.length); }, 1f, true), + function = delegate { Tunnel.instance.StartCowbell(eventCaller.currentEntity.beat, eventCaller.currentEntity["toggle"], eventCaller.currentEntity.length); }, + defaultLength = 1f, + resizable = true, + parameters = new List() + { + new Param("toggle", false, "Driver can stop", "Lets the driver stop if the player makes too many mistakes"), + } + }, + new GameAction("countin", "Count In") + { + function = delegate { Tunnel.instance.CountIn(eventCaller.currentEntity.beat, eventCaller.currentEntity.length); }, + defaultLength = 3f, + resizable = true, + } } //new List() {"ntr", "aim"},