![]() |
Liberi
An exergame built for kids with CP!
|
Blinks the renderers in an object on and off. Good for damage effects. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | Blink (float duration) |
Blink the object for the given duration. More... | |
void | StopBlinking () |
Stop blinking the object. This resets the visibility of all renderers. More... | |
Public Attributes | |
float | BlinkInterval = .04f |
The interval at which renderer visibility toggles. More... | |
Renderer[] | Unblinkables |
An array of renderers to exclude from the blink effect. More... | |
List< SpriteRenderer > | ExtraBlinkables = new List<SpriteRenderer>() |
Targeted SpriteRenderers that are not necesarily children, but want to blink with this blinker. More... | |
bool | FlashRed |
Flash SpriteRenderers Color to red instead of disabling renderers. More... | |
Blinks the renderers in an object on and off. Good for damage effects.
Definition at line 14 of file Blinker.cs.
|
inline |
Blink the object for the given duration.
Definition at line 38 of file Blinker.cs.
|
inline |
Stop blinking the object. This resets the visibility of all renderers.
Definition at line 49 of file Blinker.cs.
float Blinker.BlinkInterval = .04f |
The interval at which renderer visibility toggles.
Definition at line 19 of file Blinker.cs.
List<SpriteRenderer> Blinker.ExtraBlinkables = new List<SpriteRenderer>() |
Targeted SpriteRenderers that are not necesarily children, but want to blink with this blinker.
Definition at line 27 of file Blinker.cs.
bool Blinker.FlashRed |
Flash SpriteRenderers Color to red instead of disabling renderers.
Definition at line 31 of file Blinker.cs.
Renderer [] Blinker.Unblinkables |
An array of renderers to exclude from the blink effect.
Definition at line 23 of file Blinker.cs.