I wish create ScheduleMissableInput sometime

This commit is contained in:
fu-majime 2024-03-13 16:09:37 +09:00
parent 8176ce5866
commit 8ac9195cd7
2 changed files with 21 additions and 1 deletions

View file

@ -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()
{

View file

@ -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()