Show / Hide Table of Contents

Class Blood

Used for spawning blood particle effects

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
Blood
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class Blood : MonoBehaviour

Fields

| Edit this page View Source

AmountMultiplier

Declaration
public const float AmountMultiplier = 1.3
Field Value
Type Description
float
| Edit this page View Source

SpeedMultiplier

Declaration
public const float SpeedMultiplier = 1.2
Field Value
Type Description
float

Properties

| Edit this page View Source

Particles

The particle system emitting the blood effects

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

Methods

| Edit this page View Source

SpawnBlood(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

| Edit this page View Source

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

| Edit this page View Source

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

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