From 8ac9195cd76198c2921cc35ce105422cdc11ee25 Mon Sep 17 00:00:00 2001 From: fu-majime Date: Wed, 13 Mar 2024 16:09:37 +0900 Subject: [PATCH] I wish create ScheduleMissableInput sometime --- Assets/Scripts/Games/SickBeats/SickBeats.cs | 12 ++++++++++++ Assets/Scripts/Games/SickBeats/Virus.cs | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/SickBeats/SickBeats.cs b/Assets/Scripts/Games/SickBeats/SickBeats.cs index 9b6fde5a0..8bb102862 100644 --- a/Assets/Scripts/Games/SickBeats/SickBeats.cs +++ b/Assets/Scripts/Games/SickBeats/SickBeats.cs @@ -204,6 +204,18 @@ namespace HeavenStudio.Games new("AgbSickBeatsDown", new int[] { IA_DownPress, IA_DownPress, IA_DownPress }, IA_PadDown, IA_TouchFlick, IA_BatonDown); + public PlayerActionEvent ScheduleMissableInput(double startBeat, + double timer, + PlayerInput.InputAction inputAction, + PlayerActionEvent.ActionEventCallbackState OnHit, + PlayerActionEvent.ActionEventCallback OnMiss, + PlayerActionEvent.ActionEventCallback OnBlank, + PlayerActionEvent.ActionEventHittableQuery HittableQuery = null) + { + PlayerActionEvent evt = ScheduleInput(startBeat, timer, inputAction, OnHit, OnMiss, OnBlank, HittableQuery); + return evt; + } + // Start is called before the first frame update void Awake() { diff --git a/Assets/Scripts/Games/SickBeats/Virus.cs b/Assets/Scripts/Games/SickBeats/Virus.cs index e40306874..08f851f09 100644 --- a/Assets/Scripts/Games/SickBeats/Virus.cs +++ b/Assets/Scripts/Games/SickBeats/Virus.cs @@ -45,7 +45,15 @@ namespace HeavenStudio.Games.Scripts_SickBeats VirusAnim("appear"); })}); - game.ScheduleInput(startBeat, 1, InputAction, Just, Miss, Empty, CanJust); + // if (GameManager.instance.autoplay) + // { + // game.ScheduleAutoplayInput(startBeat, 1, InputAction, Just, Miss, Empty); + // } + // else + // { + // game.ScheduleUserInput(startBeat, 1, InputAction, Just, Miss, Empty, CanJust); + // } + game.ScheduleMissableInput(startBeat, 1, InputAction, Just, Miss, Empty, CanJust); } public void Dash()