mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Introduce IHasCatchObjectState implemented by DHO and CaughtObject
This commit is contained in:
@ -14,14 +14,8 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
var fruit = (DrawableFruit)DrawableHitObject;
|
||||
|
||||
if (fruit != null)
|
||||
VisualRepresentation.BindTo(fruit.VisualRepresentation);
|
||||
|
||||
var caughtFruit = (CaughtFruit)CaughtObject;
|
||||
if (caughtFruit != null)
|
||||
VisualRepresentation.BindTo(caughtFruit.VisualRepresentation);
|
||||
var fruitState = (IHasFruitState)ObjectState;
|
||||
VisualRepresentation.BindTo(fruitState.VisualRepresentation);
|
||||
|
||||
VisualRepresentation.BindValueChanged(visual => setTexture(visual.NewValue), true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user