Update `CatchComboDisplay` to use NRT

This commit is contained in:
Dean Herbert 2022-10-12 15:14:54 +09:00
parent 652bc4ac61
commit 2e3e4ac5be
1 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Rulesets.Catch.Objects.Drawables;
@ -22,8 +19,7 @@ public class CatchComboDisplay : SkinnableDrawable
{
private int currentCombo;
[CanBeNull]
public ICatchComboCounter ComboCounter => Drawable as ICatchComboCounter;
public ICatchComboCounter? ComboCounter => Drawable as ICatchComboCounter;
private readonly IBindable<bool> showCombo = new BindableBool(true);
@ -33,7 +29,7 @@ public CatchComboDisplay()
}
[BackgroundDependencyLoader(true)]
private void load(Player player)
private void load(Player? player)
{
if (player != null)
{