1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:12:56 +08:00

Rewrite comment

This commit is contained in:
David Zhao 2019-07-29 11:02:44 +09:00 committed by GitHub
parent 1b0f7b0459
commit 4b5fb84888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,8 +59,8 @@ namespace osu.Game.Graphics.Containers
{ {
base.LoadComplete(); base.LoadComplete();
// This must be added after the base LoadComplete. The overlay may need to be hidden immediately if its disabled, // This must be added after the base LoadComplete, since onStateChanged contains logic that
// but the overlay doesn't get shown until after the stateChanged function from VisibilityContainer gets called. // must be run after other state change logic has been completed.
State.ValueChanged += onStateChanged; State.ValueChanged += onStateChanged;
} }