filler whiffs

This commit is contained in:
Rapandrasmus 2023-06-11 02:00:39 +02:00
parent ccf0b0ab61
commit b1568a222b
2 changed files with 12 additions and 2 deletions

View file

@ -469,7 +469,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 1
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0

View file

@ -38,7 +38,7 @@ namespace HeavenStudio.Games
[Header("Components")]
[SerializeField] private NtrFillbot mediumBot;
[SerializeField] private Animator filler;
public Animator filler;
public static Fillbots instance;
@ -69,6 +69,16 @@ namespace HeavenStudio.Games
}
queuedBots.Clear();
}
if (PlayerInput.Pressed() && !IsExpectingInputNow(InputType.STANDARD_DOWN))
{
filler.DoScaledAnimationAsync("Hold", 0.5f);
SoundByte.PlayOneShotGame("fillbots/armExtension");
}
if (PlayerInput.PressedUp() && !IsExpectingInputNow(InputType.STANDARD_UP))
{
filler.DoScaledAnimationAsync("Release", 0.5f);
SoundByte.PlayOneShotGame("fillbots/armRetractionWhiff");
}
}
}