Class Flings
Used for creating "Flings" that will scatter particle objects in random directions
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class Flings
Methods
| Edit this page View SourceCreateNormalFlings()
Creates some fling particles that are used as the hit effects for normal enemies
Declaration
public static FlingInfo[] CreateNormalFlings()
Returns
Type | Description |
---|---|
FlingInfo[] | Returns the fling info needed to spawn the flings |
SpawnFlings(FlingInfo, Vector3)
Spawns the flings
Declaration
public static GameObject[] SpawnFlings(FlingInfo fling, Vector3 spawnPoint)
Parameters
Type | Name | Description |
---|---|---|
FlingInfo | fling | The flings to spawn |
Vector3 | spawnPoint | The spawn point where the fling effects will originate from |
Returns
Type | Description |
---|---|
GameObject[] | Returns the fling objects that have been created |
SpawnFlings(FlingInfo, Vector3, CardinalDirection)
Spawns the flings
Declaration
public static GameObject[] SpawnFlings(FlingInfo fling, Vector3 spawnPoint, CardinalDirection direction)
Parameters
Type | Name | Description |
---|---|---|
FlingInfo | fling | The flings to spawn |
Vector3 | spawnPoint | The spawn point where the fling effects will originate from |
CardinalDirection | direction | The direction the flings should travel in |
Returns
Type | Description |
---|---|
GameObject[] | Returns the fling objects that have been created |
SpawnFlings(FlingInfo[], Vector3)
Spawns the flings
Declaration
public static void SpawnFlings(FlingInfo[] flings, Vector3 spawnPoint)
Parameters
Type | Name | Description |
---|---|---|
FlingInfo[] | flings | The flings to spawn |
Vector3 | spawnPoint | The spawn point where the fling effects will originate from |
SpawnFlings(FlingInfo[], Vector3, CardinalDirection)
Spawns the flings
Declaration
public static void SpawnFlings(FlingInfo[] flings, Vector3 spawnPoint, CardinalDirection direction)
Parameters
Type | Name | Description |
---|---|---|
FlingInfo[] | flings | The flings to spawn |
Vector3 | spawnPoint | The spawn point where the fling effects will originate from |
CardinalDirection | direction | The direction the flings should travel in |