Class WhiteFlash
A white flash effect that is spawned when an entity is teleported via the Teleporter functions
Inheritance
Object
Component
Behaviour
MonoBehaviour
WhiteFlash
Assembly: WeaverCore.dll
Syntax
public class WhiteFlash : MonoBehaviour, IOnPool
Fields
|
Edit this page
View Source
FadeInTime
Declaration
Field Value
|
Edit this page
View Source
FadeOutTime
Declaration
Field Value
|
Edit this page
View Source
FlashColor
Declaration
Field Value
|
Edit this page
View Source
FlashIntensity
Declaration
public float FlashIntensity
Field Value
|
Edit this page
View Source
StayTime
Declaration
Field Value
Properties
|
Edit this page
View Source
DefaultPrefab
Declaration
public static WhiteFlash DefaultPrefab { get; }
Property Value
|
Edit this page
View Source
MainRenderer
Declaration
public SpriteRenderer MainRenderer { get; }
Property Value
Type |
Description |
SpriteRenderer |
|
|
Edit this page
View Source
SpriteColor
Declaration
public Color SpriteColor { get; set; }
Property Value
Methods
|
Edit this page
View Source
OnPool()
Called when the object is sent back to a pool
Declaration
public virtual void OnPool()
|
Edit this page
View Source
Spawn(Vector3, WhiteFlash)
Declaration
public static WhiteFlash Spawn(Vector3 position, WhiteFlash prefab = null)
Parameters
Type |
Name |
Description |
Vector3 |
position |
The position to spawn it at
|
WhiteFlash |
prefab |
The prefab to spawn. If null, will use the default prefab
|
Returns
Implements
Extension Methods