diff --git a/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs b/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs index d50ba7345..a9d187fc5 100644 --- a/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs +++ b/Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs @@ -220,7 +220,7 @@ namespace HeavenStudio.Games { new BeatAction.Action(beat + i, delegate { - flashAnimator.Play("KTBPulse", 0, 0); + PlayFlashFX(); SoundByte.PlayOneShotGame("rhythmTestGBA/blip"); }) @@ -230,7 +230,12 @@ namespace HeavenStudio.Games } } - + public void PlayFlashFX() + { + numberAnimator.Play("Idle"); + numberBGAnimator.Play("Idle"); + flashAnimator.Play("KTBPulse", 0 ,0); + } @@ -269,11 +274,11 @@ namespace HeavenStudio.Games BeatAction.New(instance, new List() { - new BeatAction.Action(beat, delegate {flashAnimator.Play("KTBPulse");}), + new BeatAction.Action(beat, delegate {PlayFlashFX();}), - new BeatAction.Action(beat+1, delegate {flashAnimator.Play("KTBPulse");}), + new BeatAction.Action(beat+1, delegate {PlayFlashFX();}), - new BeatAction.Action(beat+2, delegate {flashAnimator.Play("KTBPulse");}), + new BeatAction.Action(beat+2, delegate {PlayFlashFX();}), new BeatAction.Action(beat+3, delegate { SoundByte.PlayOneShotGame("rhythmTestGBA/end_ding", beat: beat, forcePlay: true);}) @@ -294,14 +299,14 @@ namespace HeavenStudio.Games public void StopKeepbeatInput(double beat) { ScheduleInput(beat, 0f, InputAction_BasicPress, ButtonSuccess, ButtonFailure, ButtonEmpty); - flashAnimator.Play("KTBPulse"); + PlayFlashFX(); } public override void OnBeatPulse(double beat) { if (goBeep) { - flashAnimator.Play("KTBPulse"); + PlayFlashFX(); SoundByte.PlayOneShotGame("rhythmTestGBA/blip"); } diff --git a/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset b/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset index ead3389e6..85de28d5f 100644 --- a/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset +++ b/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset @@ -18,5 +18,7 @@ MonoBehaviour: _disableAutoReloadInBackground: 0 ImportedScriptPaths: - Assets/Scripts/Games/Tunnel/Tunnel.cs + - Assets/Scripts/Games/SumoBrothers/SumoBrothers.cs + - Assets/Scripts/Games/RhythmTestGBA/RhythmTestGBA.cs PathsToSkipImportEvent: [] PathsToIgnoreOverwriteSettingOnAttribute: []