Godot Version
4.2 Mono
Question
There is a DamageIndicator scene, serves to display the damage received. There is a scene Bat, in it there is DamageIndicator. Bat has a ShaderMaterial to display the damage received. Shader has two states: on - sprite is white and off - sprite is normal. DamageIndicator has AnimationPlayer which is controlled from DamageIndicator script and I want to have a shader automatically connected to the Bat sprite through DamageIndicator script when Bat is created and also controlled from DamageIndicator script. Is this possible?