Register/Unregister -> BeginTracking/StopTracking and add exceptions

This commit is contained in:
smoogipoo
2018-01-18 18:45:48 +09:00
parent dee298c395
commit a94ea7025e
2 changed files with 22 additions and 9 deletions

View File

@ -97,7 +97,7 @@ namespace osu.Game.Rulesets.UI
if (rulesetConfig != null)
{
dependencies.Cache(rulesetConfig);
onScreenDisplay?.Register(this, rulesetConfig);
onScreenDisplay?.BeginTracking(this, rulesetConfig);
}
}
@ -146,7 +146,7 @@ namespace osu.Game.Rulesets.UI
if (rulesetConfig != null)
{
onScreenDisplay?.Unregister(this, rulesetConfig);
onScreenDisplay?.StopTracking(this, rulesetConfig);
rulesetConfig = null;
}
}