Class InfectedExplosion
Component used for controlling infected explosions and their effects.
Implements
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class InfectedExplosion : MonoBehaviour, IOnPool
Properties
| Edit this page View SourceDefaultScale
Gets the default scale of the explosion.
Declaration
public float DefaultScale { get; }
Property Value
Type | Description |
---|---|
float |
Particles
Gets the ParticleSystem component for the explosion.
Declaration
public ParticleSystem Particles { get; }
Property Value
Type | Description |
---|---|
ParticleSystem |
Methods
| Edit this page View SourceSpawn(Vector3)
Spawns an InfectedExplosion at the specified position
Declaration
public static InfectedExplosion Spawn(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the explosion. |
Returns
Type | Description |
---|---|
InfectedExplosion | The spawned InfectedExplosion instance. |
Spawn(Vector3, float)
Spawns an InfectedExplosion at the specified position with a specified scale.
Declaration
public static InfectedExplosion Spawn(Vector3 position, float scale)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the explosion. |
float | scale | The scale of the explosion. |
Returns
Type | Description |
---|---|
InfectedExplosion | The spawned InfectedExplosion instance. |
Spawn(Vector3, float, InfectedExplosion)
Spawns an InfectedExplosion at the specified position with a specified scale and prefab.
Declaration
public static InfectedExplosion Spawn(Vector3 position, float scale, InfectedExplosion prefab)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the explosion. |
float | scale | The scale of the explosion. |
InfectedExplosion | prefab | The prefab to use for spawning. |
Returns
Type | Description |
---|---|
InfectedExplosion | The spawned InfectedExplosion instance. |
Spawn(Vector3, InfectedExplosion)
Spawns an InfectedExplosion at the specified position with a specified prefab.
Declaration
public static InfectedExplosion Spawn(Vector3 position, InfectedExplosion prefab)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the explosion. |
InfectedExplosion | prefab | The prefab to use for spawning. |
Returns
Type | Description |
---|---|
InfectedExplosion | The spawned InfectedExplosion instance. |