Add fade to banana's lighting as it approaches the catcher

This also avoids using the `UprightScalingContainer` (and allows for
scale adjust in the process).
This commit is contained in:
Dean Herbert
2022-10-28 18:29:55 +09:00
parent 92167afaab
commit e87b541c58
4 changed files with 22 additions and 9 deletions

View File

@ -1,21 +1,19 @@
// 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 osu.Framework.Graphics;
namespace osu.Game.Rulesets.Catch.Skinning.Default
{
public class BananaPiece : CatchHitObjectPiece
{
protected override BorderPiece BorderPiece { get; }
protected override Drawable BorderPiece { get; }
public BananaPiece()
{
RelativeSizeAxes = Axes.Both;
InternalChildren = new Drawable[]
InternalChildren = new[]
{
new BananaPulpFormation
{