Change AdditiveTarget into a set method

This commit is contained in:
Salman Ahmed
2020-04-04 19:33:52 +03:00
parent fbe95a52e3
commit 19f39fe632
2 changed files with 22 additions and 22 deletions

View File

@ -33,10 +33,9 @@ namespace osu.Game.Rulesets.Catch.UI
{
RelativeSizeAxes = Axes.X;
Height = CATCHER_SIZE;
Child = MovableCatcher = new Catcher(difficulty);
// this property adds containers to 'this' so it must not be set in the object initializer.
MovableCatcher.AdditiveTarget = this;
Child = MovableCatcher = new Catcher(difficulty);
MovableCatcher.SetAdditiveTarget(this);
}
public static float GetCatcherSize(BeatmapDifficulty difficulty)