Show / Hide Table of Contents

Class InfectedExplosion

Component used for controlling infected explosions and their effects.

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

Properties

| Edit this page View Source

DefaultScale

Gets the default scale of the explosion.

Declaration
public float DefaultScale { get; }
Property Value
Type Description
float
| Edit this page View Source

Particles

Gets the ParticleSystem component for the explosion.

Declaration
public ParticleSystem Particles { get; }
Property Value
Type Description
ParticleSystem

Methods

| Edit this page View Source

Spawn(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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

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
☀
☾