nodemules / SuperPlatformerBros

1 stars 0 forks source link

"Disabled" sprite for ActionBlocks #44

Open brenthaertlein opened 6 years ago

brenthaertlein commented 6 years ago

Ability to show a disabled sprite for a block when its # of uses has expired

johngreedjr commented 6 years ago

A simple implementation of this would be to change the color in the ActionBlock class in the OnCollisionEnter2D method. This doesn't look so bad: (pseudo)

GetComponent<SpriteRenderer>().color = Color.gray;