fixed the input bug
This commit is contained in:
parent
8bcb55638e
commit
27aded06f0
|
|
@ -47,8 +47,8 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
|||
|
||||
public void PlayerClap(bool big, bool barely, bool whiff)
|
||||
{
|
||||
if (!playerMonkeyAnim.IsAnimationNotPlaying() && whiff) return;
|
||||
|
||||
if (playerMonkeyAnim.IsPlayingAnimationName("PlayerClapBarely") && whiff) return;
|
||||
if (whiff) SoundByte.PlayOneShot("miss");
|
||||
if (barely || whiff)
|
||||
{
|
||||
playerMonkeyAnim.DoScaledAnimationAsync("PlayerClapBarely", 0.4f);
|
||||
|
|
|
|||
|
|
@ -31,17 +31,6 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
|||
|
||||
private void Update()
|
||||
{
|
||||
if (inputEvent != null && inputEvent.enabled)
|
||||
{
|
||||
if (PlayerInput.Pressed() && !game.IsExpectingInputNow(InputType.STANDARD_DOWN) && !game.monkeyClockArrow.PlayerIsClapAnim())
|
||||
{
|
||||
SoundByte.PlayOneShot("miss");
|
||||
Miss(inputEvent);
|
||||
inputEvent.Disable();
|
||||
game.ScoreMiss();
|
||||
}
|
||||
}
|
||||
|
||||
if (disappear)
|
||||
{
|
||||
float normalizedBeat = Conductor.instance.GetPositionFromBeat(disappearBeat, 0.5f);
|
||||
|
|
@ -115,7 +104,10 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
|
|||
game.monkeyClockArrow.Move();
|
||||
}
|
||||
|
||||
private void Empty(PlayerActionEvent caller) { }
|
||||
private void Empty(PlayerActionEvent caller)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue