Move LoadComplete up in method

This commit is contained in:
Dean Herbert 2020-02-14 15:35:39 +09:00
parent 7e6c194d4a
commit 6f1cecd86f

View File

@ -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)
{
switch (state)
@ -78,12 +84,6 @@ namespace osu.Game.Online
/// </summary>
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)
{
API?.Unregister(this);