Show / Hide Table of Contents

Class WeaverGeo

The class used for spawning Geo in WeaverCore

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
GeoControl
WeaverGeo
Implements
ISerializationCallbackReceiver
IOnPool
Inherited Members
GeoControl.sizes
GeoControl.type
GeoControl.pickupSounds
GeoControl.acidEffect
GeoControl.getterBug
GeoControl.SetSize(int)
GeoControl.SetFlashing()
GeoControl.Disable(float)
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class WeaverGeo : GeoControl, ISerializationCallbackReceiver, IOnPool

Properties

| Edit this page View Source

LargePrefab

Gets the large geo prefab

Declaration
public static WeaverGeo LargePrefab { get; }
Property Value
Type Description
WeaverGeo
| Edit this page View Source

MediumPrefab

Gets the medium geo prefab

Declaration
public static WeaverGeo MediumPrefab { get; }
Property Value
Type Description
WeaverGeo
| Edit this page View Source

RB

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

SmallPrefab

Gets the small geo prefab

Declaration
public static WeaverGeo SmallPrefab { get; }
Property Value
Type Description
WeaverGeo

Methods

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

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

| Edit this page View Source

OnPool()

Called when the object is sent back to a pool

Declaration
public void OnPool()

Implements

UnityEngine.ISerializationCallbackReceiver
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
☀
☾