Skip to content

Commit

Permalink
Num0キーの判定を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
TORISOUP committed May 4, 2018
1 parent 3a955b4 commit aa712c9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Inferno/InfernoScripts/Parupunte/ParupunteCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,19 @@ protected override void Setup()
.Subscribe(_ => ParupunteStop());

OnKeyDownAsObservable.Where(x => x.KeyCode == Keys.NumPad0)
.Subscribe(_ => ParupunteStart(ChooseParupounteScript()));
.ThrottleFirst(TimeSpan.FromSeconds(2f), InfernoScriptScheduler)
.Subscribe(_ =>
{
if (IsActive)
{
ParupunteStop();
}
else
{
ParupunteStart(ChooseParupounteScript());
}

});

//パルプンテが停止したタイミングで開放
IsActiveAsObservable
Expand Down

0 comments on commit aa712c9

Please sign in to comment.