mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 17:57:39 +02:00
Configurable Event Priority & Bugfixes (#209)
* add event priority fix crop stomp queuing inputs while chart is paused fix rhythm tweezers not killing queued inputs when switching veggies * file cleanup * remove debug print * remove more files
This commit is contained in:
@ -15,6 +15,8 @@ namespace HeavenStudio.Games.Scripts_RhythmTweezers
|
||||
private Tweezers tweezers;
|
||||
private bool plucked;
|
||||
|
||||
PlayerActionEvent pluckEvent;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
game = RhythmTweezers.instance;
|
||||
@ -22,7 +24,7 @@ namespace HeavenStudio.Games.Scripts_RhythmTweezers
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
game.ScheduleInput(createBeat, game.tweezerBeatOffset + game.beatInterval, InputType.STANDARD_DOWN | InputType.DIRECTION_DOWN, Just, Miss, Out);
|
||||
pluckEvent = game.ScheduleInput(createBeat, game.tweezerBeatOffset + game.beatInterval, InputType.STANDARD_DOWN | InputType.DIRECTION_DOWN, Just, Miss, Out);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@ -58,5 +60,11 @@ namespace HeavenStudio.Games.Scripts_RhythmTweezers
|
||||
}
|
||||
|
||||
private void Out(PlayerActionEvent caller) {}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
if (pluckEvent != null)
|
||||
pluckEvent.Disable();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user