![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
FX class which flashes a sprite by changing its colour. More...
Public Attributes | |
Color | invisibleColour |
Target color. More... | |
float | totalTime |
How long to flash for. More... | |
float | invisibleTime |
How long to stay in the invisble colour. More... | |
float | visibleTime |
How long to stay in the invisble colour. More... | |
Component | fadeTarget |
Target to fade. More... | |
![]() | |
bool | playOnAwake |
Should we play this on awake. More... | |
Protected Member Functions | |
override void | DoEffect () |
Do the effect. More... | |
virtual IEnumerator | Flash () |
Flash the target. More... | |
virtual void | SetOriginalColor (Component component) |
Sets the original color by inspecting the relevant component. More... | |
virtual void | SetColorForComponent (Component component, Color32 color) |
Sets the color for component. More... | |
Protected Attributes | |
Color | originalColor |
![]() | |
bool | playWhenEnabled |
If we have play on awake true but we are not enabled we will defer the play until we are enabled. More... | |
Additional Inherited Members | |
![]() | |
virtual void | StartEffect () |
Starts the effect. More... | |
virtual void | StartEffect (GameObject callbackObject, string function) |
Starts the effect. More... | |
FX class which flashes a sprite by changing its colour.
|
protectedvirtual |
Do the effect.
Implements PlatformerPro.Extras.FX_Base.
|
protectedvirtual |
Flash the target.
|
protectedvirtual |
Sets the color for component.
component | Component. |
color | Color. |
|
protectedvirtual |
Sets the original color by inspecting the relevant component.
component | Component. |
Component PlatformerPro.Extras.FX_Flash.fadeTarget |
Target to fade.
Color PlatformerPro.Extras.FX_Flash.invisibleColour |
Target color.
float PlatformerPro.Extras.FX_Flash.invisibleTime |
How long to stay in the invisble colour.
|
protected |
float PlatformerPro.Extras.FX_Flash.totalTime |
How long to flash for.
float PlatformerPro.Extras.FX_Flash.visibleTime |
How long to stay in the invisble colour.