Move IsCounting to KeyCounter.

This commit is contained in:
Huo Yaoyuan
2016-09-23 19:14:11 +08:00
parent 409bb0d068
commit ba19fe1b97
2 changed files with 9 additions and 3 deletions

View File

@ -13,8 +13,14 @@ namespace osu.Game.Graphics.UserInterface
Direction = FlowDirection.HorizontalOnly;
}
public void AddKey(Count key) => base.Add(key);
public void AddKey(Count key)
{
key.ParentCounter = this;
base.Add(key);
}
public override bool Contains(Vector2 screenSpacePos) => true;
public bool IsCounting { get; set; }
}
}