Class Shockwave
Used to control a white shockwave that scrolls across the screen
Implements
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class Shockwave : MonoBehaviour, IOnPool
Properties
| Edit this page View SourceShockwaveShort
The default prefab for a short shockwave
Declaration
public static Shockwave ShockwaveShort { get; }
Property Value
Type | Description |
---|---|
Shockwave |
ShockwaveSmall
The default prefab for a small shockwave
Declaration
public static Shockwave ShockwaveSmall { get; }
Property Value
Type | Description |
---|---|
Shockwave |
ShockwaveZ
The default prefab for a large shockwave
Declaration
public static Shockwave ShockwaveZ { get; }
Property Value
Type | Description |
---|---|
Shockwave |
Methods
| Edit this page View SourceOnPool()
Called when the object is retrieved from the object pool.
Declaration
public void OnPool()
Spawn(Shockwave, Vector3, bool, float)
Spawns a shockwave instance.
Declaration
public static Shockwave Spawn(Shockwave prefab, Vector3 position, bool faceRight = true, float speed = 1)
Parameters
Type | Name | Description |
---|---|---|
Shockwave | prefab | Prefab of the shockwave. |
Vector3 | position | Position of the shockwave. |
bool | faceRight | Determines the initial facing direction. |
float | speed | Speed of the shockwave. |
Returns
Type | Description |
---|---|
Shockwave | The spawned shockwave instance. |