Skip to content

Commit

Permalink
Stop playing the preview in the gameplay scene
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnoyingRain5 committed Dec 1, 2023
1 parent 16e6fde commit 72452f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CrankItUp.Game/src/Screens/DifficultySelect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,18 @@ public override void OnEntering(ScreenTransitionEvent e)

public override void OnResuming(ScreenTransitionEvent e)
{
track.Start();
this.FadeInFromZero(500, Easing.OutQuint);
}

public override bool OnExiting(ScreenExitEvent e)
public override void OnSuspending(ScreenTransitionEvent e)
{
track.Stop();
}

public override bool OnExiting(ScreenExitEvent e)
{
track.Dispose();
return base.OnExiting(e);
}
}
Expand Down

0 comments on commit 72452f4

Please sign in to comment.