toss boys crouch fixed

This commit is contained in:
Rapandrasmus 2023-11-25 14:21:11 +01:00
parent 891af2737e
commit 0e0adc82dc
2 changed files with 1 additions and 9 deletions

View file

@ -1065,8 +1065,7 @@ namespace HeavenStudio.Games
if (currentSpecialKid != null) currentSpecialKid.crouch = false; if (currentSpecialKid != null) currentSpecialKid.crouch = false;
currentSpecialKid = GetCurrentReceiver(); currentSpecialKid = GetCurrentReceiver();
if (PlayerInput.CurrentControlStyle != InputController.ControlStyles.Touch) GetCurrentReceiver().Crouch();
GetCurrentReceiver().Crouch();
GetSpecialBasedOnReceiver().SetActive(true); GetSpecialBasedOnReceiver().SetActive(true);
switch (currentReceiver) switch (currentReceiver)

View file

@ -35,7 +35,6 @@ namespace HeavenStudio.Games.Scripts_TossBoys
DoAnimationScaledAsync("Whiff", 0.5f); DoAnimationScaledAsync("Whiff", 0.5f);
SoundByte.PlayOneShotGame("tossBoys/whiff"); SoundByte.PlayOneShotGame("tossBoys/whiff");
} }
crouch = false;
preparing = false; preparing = false;
} }
@ -51,12 +50,6 @@ namespace HeavenStudio.Games.Scripts_TossBoys
crouch = true; crouch = true;
} }
public void UnCrouch()
{
DoAnimationScaledAsync("Idle", 1f);
crouch = false;
}
public void PopBall() public void PopBall()
{ {
DoAnimationScaledAsync("Slap", 0.5f); DoAnimationScaledAsync("Slap", 0.5f);