Class SpriteFlasher
This component causes the sprite to flash. This is also used by EntityHealth to flash the enemy upon hit
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
[RequireComponent(typeof(SpriteRenderer))]
public class SpriteFlasher : MonoBehaviour
Fields
| Edit this page View SourceCustomFlasherMaterial
Declaration
public Material CustomFlasherMaterial
Field Value
Type | Description |
---|---|
Material |
Properties
| Edit this page View SourceFlashColor
The color of the flash
Declaration
public Color FlashColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
FlashIntensity
How intense the flash is. 0 means no flash, while 1 means the sprite is fully flashing
Declaration
public float FlashIntensity { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceDoFlash(float, float, float, Color?, float)
Causes the sprite to flash
Declaration
public void DoFlash(float BeginTime, float EndTime, float Intensity = 0.8, Color? FlashColor = null, float StayTime = 0.05)
Parameters
Type | Name | Description |
---|---|---|
float | BeginTime | How long it takes to go from no flash to full flash |
float | EndTime | How long it takes to go from full flash to no flash |
float | Intensity | The maximum intensity of the flash |
Color? | FlashColor | The color of the flash. If left null, will use the default color (white) |
float | StayTime | How long the sprite should stay at full flash before fading out |
DoFlash(float, float, float, float)
Causes the sprite to flash
Declaration
public void DoFlash(float BeginTime, float EndTime, float Intensity = 0.8, float StayTime = 0.05)
Parameters
Type | Name | Description |
---|---|---|
float | BeginTime | How long it takes to go from no flash to full flash |
float | EndTime | How long it takes to go from full flash to no flash |
float | Intensity | The maximum intensity of the flash |
float | StayTime | How long the sprite should stay at full flash before fading out |
FlashGrimmHit()
Declaration
public void FlashGrimmHit()
FlashGrimmflame()
Declaration
public void FlashGrimmflame()
FlashNormalHit()
Declaration
public void FlashNormalHit()
FlashShadowRecharge()
Declaration
public void FlashShadowRecharge()
FlashingFury()
Declaration
public void FlashingFury()
FlashingGhostWounded()
Declaration
public void FlashingGhostWounded()
FlashingOrange()
Declaration
public void FlashingOrange()
FlashingSuperDash()
Declaration
public void FlashingSuperDash()
FlashingWhiteStay()
Declaration
public void FlashingWhiteStay()
FlashingWhiteStayMoth()
Declaration
public void FlashingWhiteStayMoth()
StopFlashing()
Declaration
public void StopFlashing()
flashArmoured()
Declaration
public void flashArmoured()
flashBenchRest()
Declaration
public void flashBenchRest()
flashDreamImpact()
Declaration
public void flashDreamImpact()
flashDung()
Declaration
public void flashDung()
flashDungQuick()
Declaration
public void flashDungQuick()
flashFocusGet()
Declaration
public void flashFocusGet()
flashFocusHeal()
Declaration
public void flashFocusHeal()
flashHealBlue()
Declaration
public void flashHealBlue()
flashInfected()
Declaration
public void flashInfected()
flashInfectedLong()
Declaration
public void flashInfectedLong()
flashInfectedLoop()
Declaration
public void flashInfectedLoop()
flashMothDepart()
Declaration
public void flashMothDepart()
flashOvercharmed()
Declaration
public void flashOvercharmed()
flashShadeGet()
Declaration
public void flashShadeGet()
flashSoulGet()
Declaration
public void flashSoulGet()
flashSporeQuick()
Declaration
public void flashSporeQuick()
flashWhiteLong()
Declaration
public void flashWhiteLong()
flashWhitePulse()
Declaration
public void flashWhitePulse()
flashWhiteQuick()
Declaration
public void flashWhiteQuick()