Show / Hide Table of Contents

Class Shockwave

Used to control a white shockwave that scrolls across the screen

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
Shockwave
Implements
IOnPool
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class Shockwave : MonoBehaviour, IOnPool

Properties

| Edit this page View Source

ShockwaveShort

The default prefab for a short shockwave

Declaration
public static Shockwave ShockwaveShort { get; }
Property Value
Type Description
Shockwave
| Edit this page View Source

ShockwaveSmall

The default prefab for a small shockwave

Declaration
public static Shockwave ShockwaveSmall { get; }
Property Value
Type Description
Shockwave
| Edit this page View Source

ShockwaveZ

The default prefab for a large shockwave

Declaration
public static Shockwave ShockwaveZ { get; }
Property Value
Type Description
Shockwave

Methods

| Edit this page View Source

OnPool()

Called when the object is retrieved from the object pool.

Declaration
public void OnPool()
| Edit this page View Source

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.

Implements

IOnPool

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾