Class Blood
Used for spawning blood particle effects
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class Blood : MonoBehaviour
Fields
| Edit this page View SourceAmountMultiplier
Declaration
public const float AmountMultiplier = 1.3
Field Value
Type | Description |
---|---|
float |
SpeedMultiplier
Declaration
public const float SpeedMultiplier = 1.2
Field Value
Type | Description |
---|---|
float |
Properties
| Edit this page View SourceParticles
The particle system emitting the blood effects
Declaration
public ParticleSystem Particles { get; }
Property Value
Type | Description |
---|---|
ParticleSystem |
Methods
| Edit this page View SourceSpawnBlood(Vector3, BloodSpawnInfo)
Spawns blood particles
Declaration
public static Blood SpawnBlood(Vector3 position, Blood.BloodSpawnInfo spawnInfo)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the particles |
Blood.BloodSpawnInfo | spawnInfo | The info object used to determine how the blood is spawned |
Returns
Type | Description |
---|---|
Blood | Returns an instance to the blood particle system creating the effects |
SpawnDirectionalBlood(Vector3, CardinalDirection)
Spawns blood effects that travel in a certain direction
Declaration
public static IEnumerable<Blood> SpawnDirectionalBlood(Vector3 position, CardinalDirection direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position the blood should be spawned at |
CardinalDirection | direction | The general direction the blood should be traveling in |
Returns
Type | Description |
---|---|
IEnumerable<Blood> | Returns a list of all the blood particle systems creating the effects |
SpawnRandomBlood(Vector3)
Spawns a bunch of blood particles in random directions
Declaration
public static Blood SpawnRandomBlood(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position the blood should be spawned at |
Returns
Type | Description |
---|---|
Blood | Returns an instance to the blood particle system creating the effects |