I wish create ScheduleMissableInput sometime
This commit is contained in:
parent
8176ce5866
commit
8ac9195cd7
|
@ -204,6 +204,18 @@ namespace HeavenStudio.Games
|
||||||
new("AgbSickBeatsDown", new int[] { IA_DownPress, IA_DownPress, IA_DownPress },
|
new("AgbSickBeatsDown", new int[] { IA_DownPress, IA_DownPress, IA_DownPress },
|
||||||
IA_PadDown, IA_TouchFlick, IA_BatonDown);
|
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
|
// Start is called before the first frame update
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,15 @@ namespace HeavenStudio.Games.Scripts_SickBeats
|
||||||
VirusAnim("appear");
|
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()
|
public void Dash()
|
||||||
|
|
Loading…
Reference in a new issue