Merge branch 'MonkeyWatch' of https://github.com/Rapandrasmus/HeavenStudio into MonkeyWatch

This commit is contained in:
ev 2023-08-07 16:55:42 -04:00
commit 7049f41226
2 changed files with 6 additions and 14 deletions

View file

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

View file

@ -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)
{
}
}
}