fixed beataction parameters

This commit is contained in:
Rapandrasmus 2023-10-07 10:32:03 +02:00
parent 791fb4d86b
commit 9bfde35445
2 changed files with 6 additions and 6 deletions

View file

@ -340,7 +340,7 @@ namespace HeavenStudio.Games
}
actions.Sort((x, y) => x.beat.CompareTo(y.beat));
BeatAction.New(instance.gameObject, actions);
BeatAction.New(instance, actions);
}
#region clapping
@ -404,7 +404,7 @@ namespace HeavenStudio.Games
void NormalClap()
{
BeatAction.New(instance.gameObject, new List<BeatAction.Action>()
BeatAction.New(instance, new List<BeatAction.Action>()
{
new BeatAction.Action(beat - 4, delegate
{
@ -444,7 +444,7 @@ namespace HeavenStudio.Games
});
}
actions.Sort((x, y) => x.beat.CompareTo(y.beat));
BeatAction.New(instance.gameObject, actions);
BeatAction.New(instance, actions);
}
void PinkClapCustom(float length)
@ -476,7 +476,7 @@ namespace HeavenStudio.Games
});
}
actions.Sort((x, y) => x.beat.CompareTo(y.beat));
BeatAction.New(instance.gameObject, actions);
BeatAction.New(instance, actions);
}
}
#endregion

View file

@ -64,7 +64,7 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
{
anim.DoScaledAnimationAsync(isPink ? "PinkPrepare" + direction : "Prepare" + direction, 0);
inputEvent = game.ScheduleInput(prepareBeat, inputBeat - prepareBeat, InputType.STANDARD_DOWN, Just, Miss, Empty);
BeatAction.New(gameObject, new List<BeatAction.Action>()
BeatAction.New(this, new List<BeatAction.Action>()
{
new BeatAction.Action(prepareBeat - 0.25, delegate
{
@ -88,7 +88,7 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
game.PlayerMonkeyClap(isPink, barely);
anim.DoScaledAnimationAsync(isPink ? "PinkClap" + direction : "Clap" + direction, 0.4f);
BeatAction.New(gameObject, new List<BeatAction.Action>()
BeatAction.New(this, new List<BeatAction.Action>()
{
new BeatAction.Action(caller.timer + caller.startBeat + 1, delegate
{