mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
Add null check.
This commit is contained in:
parent
154226b9a3
commit
a114463678
@ -29,7 +29,8 @@ namespace osu.Game.GameModes
|
|||||||
protected override double OnEntering(GameMode last)
|
protected override double OnEntering(GameMode last)
|
||||||
{
|
{
|
||||||
//only show the pop button if we are entered form another gamemode.
|
//only show the pop button if we are entered form another gamemode.
|
||||||
popButton.Alpha = 1;
|
if (last != null)
|
||||||
|
popButton.Alpha = 1;
|
||||||
|
|
||||||
MoveTo(new Vector2(ActualSize.X, 0));
|
MoveTo(new Vector2(ActualSize.X, 0));
|
||||||
MoveTo(Vector2.Zero, transition_time, EasingTypes.OutQuint);
|
MoveTo(Vector2.Zero, transition_time, EasingTypes.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user