Class WeaverGeo
The class used for spawning Geo in WeaverCore
Inherited Members
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class WeaverGeo : GeoControl, ISerializationCallbackReceiver, IOnPool
Properties
| Edit this page View SourceLargePrefab
Gets the large geo prefab
Declaration
public static WeaverGeo LargePrefab { get; }
Property Value
Type | Description |
---|---|
WeaverGeo |
MediumPrefab
Gets the medium geo prefab
Declaration
public static WeaverGeo MediumPrefab { get; }
Property Value
Type | Description |
---|---|
WeaverGeo |
RB
Declaration
public Rigidbody2D RB { get; }
Property Value
Type | Description |
---|---|
Rigidbody2D |
SmallPrefab
Gets the small geo prefab
Declaration
public static WeaverGeo SmallPrefab { get; }
Property Value
Type | Description |
---|---|
WeaverGeo |
Methods
| Edit this page View SourceFlingGeo(int, int, int, Vector3)
Flings small, medium and large geo
Declaration
public static List<WeaverGeo> FlingGeo(int smallAmount, int mediumAmount, int largeAmount, Vector3 spawnPos)
Parameters
Type | Name | Description |
---|---|---|
int | smallAmount | The amount of small geo to spawn |
int | mediumAmount | The amount of medium geo to spawn |
int | largeAmount | The amount of large geo to spawn |
Vector3 | spawnPos | Where the geo is going to spawn at |
Returns
Type | Description |
---|---|
List<WeaverGeo> | Returns a list of all the spawned geo |
FlingGeoPrefab(Config, Vector3)
Flings a geo prefab. This function is used to offer more customization when flinging the geo
Declaration
public static List<WeaverGeo> FlingGeoPrefab(FlingUtils.Config flingInfo, Vector3 spawnPos)
Parameters
Type | Name | Description |
---|---|---|
FlingUtils.Config | flingInfo | Rhe parameters used to control how the geo gets flung |
Vector3 | spawnPos | Where the geo will spawn |
Returns
Type | Description |
---|---|
List<WeaverGeo> | Returns a list of the spawned geo |
FlingLarge(int, Vector3)
Spawns some large geo, which is flung in random directions
Declaration
public static List<WeaverGeo> FlingLarge(int amount, Vector3 spawnPos)
Parameters
Type | Name | Description |
---|---|---|
int | amount | the amount of large geo to spawn |
Vector3 | spawnPos | The position to spawn them at |
Returns
Type | Description |
---|---|
List<WeaverGeo> | Returns the spawned geo |
FlingMedium(int, Vector3)
Spawns some medium geo, which is flung in random directions
Declaration
public static List<WeaverGeo> FlingMedium(int amount, Vector3 spawnPos)
Parameters
Type | Name | Description |
---|---|---|
int | amount | The amount of medium geo to spawn |
Vector3 | spawnPos | The position to spawn them at |
Returns
Type | Description |
---|---|
List<WeaverGeo> | Returns the spawned geo |
FlingSmall(int, Vector3)
Spawns some small geo, which is flung in random directions
Declaration
public static List<WeaverGeo> FlingSmall(int amount, Vector3 spawnPos)
Parameters
Type | Name | Description |
---|---|---|
int | amount | The amount of small geo to spawn |
Vector3 | spawnPos | The position to spawn them at |
Returns
Type | Description |
---|---|
List<WeaverGeo> | Returns the spawned geo |
OnPool()
Called when the object is sent back to a pool
Declaration
public void OnPool()