DoopelPonger
|
Used by SchmittyDoop to change the colors of each component when it gets hit by a player. More...
Public Member Functions | |
void | Awake () |
Initialize the references used by the class. More... | |
void | SetFlashColor (Color color) |
void | LerpColors (float ratio) |
Set the color of the material based on lerping between the flashColor and originalColor and the ratio provided. More... | |
void | SwitchColors () |
Switch which colors that should be used as the base color and the color to lerp to. More... | |
void | ResetColors () |
Set the original color as the base color and the flash color as the color being lerped to. More... | |
void | SetAlpha (float alpha) |
Public Attributes | |
Color | flashColor |
Used by SchmittyDoop to change the colors of each component when it gets hit by a player.
This class does not control the ratio between flash color and original color the material should be, it simply changes the color of the material based on the ratio provided in the LerpColors method.
void CoopFlashSpriteRenderer.Awake | ( | ) |
Initialize the references used by the class.
void CoopFlashSpriteRenderer.LerpColors | ( | float | ratio | ) |
Set the color of the material based on lerping between the flashColor and originalColor and the ratio provided.
ratio | The color the material should be set to. |
void CoopFlashSpriteRenderer.ResetColors | ( | ) |
Set the original color as the base color and the flash color as the color being lerped to.
void CoopFlashSpriteRenderer.SetAlpha | ( | float | alpha | ) |
alpha | Set the alpha of the material color. |
void CoopFlashSpriteRenderer.SetFlashColor | ( | Color | color | ) |
color | Set the color that the material should change to when Schmitty Doop is hit. |
void CoopFlashSpriteRenderer.SwitchColors | ( | ) |
Switch which colors that should be used as the base color and the color to lerp to.
Color CoopFlashSpriteRenderer.flashColor |
The color that the material will change when Schmitty Doop gets hit.