Class StunEffect
An effect that is instantiated when an enemy is stunned
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class StunEffect : MonoBehaviour
Methods
| Edit this page View SourceSpawn(Vector3)
Spawns a stun effect
Declaration
public static void Spawn(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the effect |
Spawn(Vector3, AudioClip)
Spawns a stun effect
Declaration
public static void Spawn(Vector3 position, AudioClip clip)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the effect |
AudioClip | clip | The sound to play when stunned |