Show / Hide Table of Contents

Class MantisShot

WeaverCore's implementation of a mantis shot

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
MantisShot
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class MantisShot : MonoBehaviour

Properties

| Edit this page View Source

Animator

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

Audio

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

BoomerangForce

The amount of force that is applied on the y-axis when the mantis shot reaches the player

Declaration
public float BoomerangForce { get; set; }
Property Value
Type Description
float
| Edit this page View Source

MainCollider

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

PlaySound

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

RB

Declaration
public Rigidbody2D RB { get; }
Property Value
Type Description
Rigidbody2D

Methods

| Edit this page View Source

Spawn(Vector3, Vector2, bool)

Spawns a mantis shot

Declaration
public static MantisShot Spawn(Vector3 position, Vector2 velocity, bool playLaunchSound = true)
Parameters
Type Name Description
Vector3 position

The position to spawn it at

Vector2 velocity

The starting velocity of the mantis shot

bool playLaunchSound

If set to true, will play a sound when it is launched

Returns
Type Description
MantisShot

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