Fixed comment. Created static CatchArea.GetCatcheWidth method

This commit is contained in:
Hanamuke
2018-09-13 17:01:33 +02:00
parent 623f8bfaf5
commit 7d3380db66
3 changed files with 9 additions and 7 deletions

View File

@ -107,6 +107,11 @@ namespace osu.Game.Rulesets.Catch.UI
public bool AttemptCatch(CatchHitObject obj) => MovableCatcher.AttemptCatch(obj);
public static float GetCatcherSize(BeatmapDifficulty difficulty)
{
return (CATCHER_SIZE / CatchPlayfield.BASE_WIDTH) * (1.0f - 0.7f * (difficulty.CircleSize - 5) / 5);
}
public class Catcher : Container, IKeyBindingHandler<CatchAction>
{
/// <summary>