Add BananaShower models and representations

(cherry picked from commit e12e095)
This commit is contained in:
Dean Herbert
2018-01-10 14:52:22 +09:00
parent 1c3c90bac6
commit a36cfd4265
5 changed files with 151 additions and 7 deletions

View File

@ -33,13 +33,15 @@ namespace osu.Game.Rulesets.Catch.UI
protected override DrawableHitObject<CatchHitObject> GetVisualRepresentation(CatchHitObject h)
{
var fruit = h as Fruit;
if (fruit != null)
return new DrawableFruit(fruit);
var stream = h as JuiceStream;
if (stream != null)
return new DrawableJuiceStream(stream);
switch (h)
{
case Fruit fruit:
return new DrawableFruit(fruit);
case JuiceStream stream:
return new DrawableJuiceStream(stream);
case BananaShower banana:
return new DrawableBananaShower(banana);
}
return null;
}