mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Move LoadComplete up in method
This commit is contained in:
parent
7e6c194d4a
commit
6f1cecd86f
@ -42,6 +42,12 @@ namespace osu.Game.Online
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
API?.Register(this);
|
||||||
|
base.LoadComplete();
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void APIStateChanged(IAPIProvider api, APIState state)
|
public virtual void APIStateChanged(IAPIProvider api, APIState state)
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
@ -78,12 +84,6 @@ namespace osu.Game.Online
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void PopContentIn(Drawable content) => content.FadeIn(TRANSFORM_TIME, Easing.OutQuint);
|
protected virtual void PopContentIn(Drawable content) => content.FadeIn(TRANSFORM_TIME, Easing.OutQuint);
|
||||||
|
|
||||||
protected override void LoadComplete()
|
|
||||||
{
|
|
||||||
API?.Register(this);
|
|
||||||
base.LoadComplete();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
API?.Unregister(this);
|
API?.Unregister(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user