diff --git a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs index 420c7bd4d..f92def5a5 100644 --- a/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs +++ b/Assets/Scripts/Games/MonkeyWatch/MonkeyWatch.cs @@ -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.New(instance, new List() { 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 diff --git a/Assets/Scripts/Games/MonkeyWatch/WatchMonkey.cs b/Assets/Scripts/Games/MonkeyWatch/WatchMonkey.cs index e7fbb5e1c..3325cb994 100644 --- a/Assets/Scripts/Games/MonkeyWatch/WatchMonkey.cs +++ b/Assets/Scripts/Games/MonkeyWatch/WatchMonkey.cs @@ -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.New(this, new List() { 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.New(this, new List() { new BeatAction.Action(caller.timer + caller.startBeat + 1, delegate {