mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 12:17:46 +08:00
Tidy up nullability and casting
This commit is contained in:
parent
1581f1a0ff
commit
0ade8db550
@ -12,7 +12,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
{
|
{
|
||||||
public abstract class FollowCircle : CompositeDrawable
|
public abstract class FollowCircle : CompositeDrawable
|
||||||
{
|
{
|
||||||
[Resolved(canBeNull: true)]
|
[Resolved]
|
||||||
protected DrawableHitObject? ParentObject { get; private set; }
|
protected DrawableHitObject? ParentObject { get; private set; }
|
||||||
|
|
||||||
protected FollowCircle()
|
protected FollowCircle()
|
||||||
@ -23,11 +23,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
if (ParentObject != null)
|
((DrawableSlider?)ParentObject)?.Tracking.BindValueChanged(OnTrackingChanged, true);
|
||||||
{
|
|
||||||
var slider = (DrawableSlider)ParentObject;
|
|
||||||
slider.Tracking.BindValueChanged(OnTrackingChanged, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
Loading…
Reference in New Issue
Block a user