toss boys crouch fixed
This commit is contained in:
parent
891af2737e
commit
0e0adc82dc
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue