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:
minenice55
2023-01-18 21:31:08 -05:00
committed by GitHub
parent 8d707ecd4e
commit c037901d34
53 changed files with 77 additions and 1489 deletions

View File

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