fork lifter fixes
This commit is contained in:
parent
2c4427d343
commit
7fc8b2ab2d
|
|
@ -92,6 +92,8 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
public void Early()
|
public void Early()
|
||||||
{
|
{
|
||||||
|
player.Stab(null);
|
||||||
|
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
|
|
||||||
pea.transform.parent = player.early.transform;
|
pea.transform.parent = player.early.transform;
|
||||||
|
|
@ -124,6 +126,8 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
public void Late()
|
public void Late()
|
||||||
{
|
{
|
||||||
|
player.Stab(null);
|
||||||
|
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
pea.transform.parent = player.late.transform;
|
pea.transform.parent = player.late.transform;
|
||||||
pea.transform.localScale = Vector2.one;
|
pea.transform.localScale = Vector2.one;
|
||||||
|
|
@ -161,18 +165,23 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
private void Just(PlayerActionEvent caller, float state)
|
private void Just(PlayerActionEvent caller, float state)
|
||||||
{
|
{
|
||||||
if (state >= 1f) {
|
if (state >= 1f)
|
||||||
|
{
|
||||||
Late();
|
Late();
|
||||||
} else if (state <= -1f) {
|
}
|
||||||
|
else if (state <= -1f)
|
||||||
|
{
|
||||||
Early();
|
Early();
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
Hit();
|
Hit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Miss(PlayerActionEvent caller)
|
private void Miss(PlayerActionEvent caller)
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShot("forkLifter/disappointed");
|
SoundByte.PlayOneShotGame("forkLifter/disappointed");
|
||||||
BeatAction.New(game, new List<BeatAction.Action>()
|
BeatAction.New(game, new List<BeatAction.Action>()
|
||||||
{
|
{
|
||||||
new BeatAction.Action(startBeat+ 2.45f, delegate {
|
new BeatAction.Action(startBeat+ 2.45f, delegate {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue